1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-25 21:38:59 +02:00

AI/BattleAI/BattleEvaluator.cpp: Convert this integer literal to a bool literal.

Integer literals should not be cast to bool
This commit is contained in:
Alexander Wilms 2023-10-28 18:01:37 +00:00
parent bfddc90ff4
commit 0232ae5327

View File

@ -307,7 +307,7 @@ BattleAction BattleEvaluator::goTowardsNearest(const CStack * stack, std::vector
else
{
BattleHex currentDest = bestNeighbor;
while(1)
while(true)
{
if(!currentDest.isValid())
{