[quake3-commits] r1955 - trunk/code/botlib

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon May 2 11:57:02 EDT 2011


Author: thilo
Date: 2011-05-02 11:57:02 -0400 (Mon, 02 May 2011)
New Revision: 1955

Modified:
   trunk/code/botlib/be_ai_move.c
Log:
Fix out of bounds array index (#4960) patch by Ben Millwood


Modified: trunk/code/botlib/be_ai_move.c
===================================================================
--- trunk/code/botlib/be_ai_move.c	2011-05-02 15:53:20 UTC (rev 1954)
+++ trunk/code/botlib/be_ai_move.c	2011-05-02 15:57:02 UTC (rev 1955)
@@ -3509,7 +3509,7 @@
 	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
 //===========================================================================



More information about the quake3-commits mailing list