Browse Source

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

Integer literals should not be cast to bool
Alexander Wilms 2 years ago
parent
commit
0232ae5327
1 changed files with 1 additions and 1 deletions
  1. 1 1
      AI/BattleAI/BattleEvaluator.cpp

+ 1 - 1
AI/BattleAI/BattleEvaluator.cpp

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