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
1 changed files with 1 additions and 1 deletions

View File

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