Fix out of bounds array index (#4960) patch by Ben Millwood

This commit is contained in:
Thilo Schulz 2011-05-02 15:57:02 +00:00
parent bd9485f597
commit b97a7e2583

View file

@ -3509,7 +3509,7 @@ void BotResetLastAvoidReach(int movestate)
if (latesttime) if (latesttime)
{ {
ms->avoidreachtimes[latest] = 0; ms->avoidreachtimes[latest] = 0;
if (ms->avoidreachtries[i] > 0) ms->avoidreachtries[latest]--; if (ms->avoidreachtries[latest] > 0) ms->avoidreachtries[latest]--;
} //end if } //end if
} //end of the function BotResetLastAvoidReach } //end of the function BotResetLastAvoidReach
//=========================================================================== //===========================================================================