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:
parent
bfddc90ff4
commit
0232ae5327
@ -307,7 +307,7 @@ BattleAction BattleEvaluator::goTowardsNearest(const CStack * stack, std::vector
|
||||
else
|
||||
{
|
||||
BattleHex currentDest = bestNeighbor;
|
||||
while(1)
|
||||
while(true)
|
||||
{
|
||||
if(!currentDest.isValid())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user