浏览代码

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

Integer literals should not be cast to bool
Alexander Wilms 2 年之前
父节点
当前提交
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
 	else
 	{
 	{
 		BattleHex currentDest = bestNeighbor;
 		BattleHex currentDest = bestNeighbor;
-		while(1)
+		while(true)
 		{
 		{
 			if(!currentDest.isValid())
 			if(!currentDest.isValid())
 			{
 			{