Correct AP check

We can't do anything with negative action points either.
This commit is contained in:
Asdow
2024-02-02 01:00:12 +02:00
parent a90e11619d
commit 22f2c9ff9a
+1 -1
View File
@@ -5114,7 +5114,7 @@ INT8 DecideActionBlack(SOLDIERTYPE *pSoldier)
}
// if we have absolutely no action points, we can't do a thing under BLACK!
if (!pSoldier->bActionPoints)
if (pSoldier->bActionPoints <= 0)
{
pSoldier->aiData.usActionData = NOWHERE;
return(AI_ACTION_NONE);