[nexuiz-commits] r7062 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Jun 20 13:59:51 EDT 2009


Author: div0
Date: 2009-06-20 13:59:51 -0400 (Sat, 20 Jun 2009)
New Revision: 7062

Modified:
   trunk/data/qcsrc/server/bots_scripting.qc
Log:
fix crash in bot clear queue


Modified: trunk/data/qcsrc/server/bots_scripting.qc
===================================================================
--- trunk/data/qcsrc/server/bots_scripting.qc	2009-06-19 11:02:13 UTC (rev 7061)
+++ trunk/data/qcsrc/server/bots_scripting.qc	2009-06-20 17:59:51 UTC (rev 7062)
@@ -1104,7 +1104,8 @@
 
 	FOR_EACH_CLIENT(cl) if(cl.isbot)
 	{
-		bot_clearqueue(cl);
+		if(cl.bot_cmdqueuebuf_allocated)
+			bot_clearqueue(cl);
 		// also, cancel all barriers
 		cl.bot_barrier = 0;
 		for(i = 0; i < cl.bot_places_count; ++i)



More information about the nexuiz-commits mailing list