Ver código fonte

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

Integer literals should not be cast to bool
Alexander Wilms 2 anos atrás
pai
commit
0232ae5327
1 arquivos alterados com 1 adições e 1 exclusões
  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())
 			{