Просмотр исходного кода

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

Integer literals should not be cast to bool
Alexander Wilms 2 лет назад
Родитель
Сommit
0232ae5327
1 измененных файлов с 1 добавлено и 1 удалено
  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())
 			{