r1116 - trunk/code/game

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Jul 19 04:05:59 EDT 2007


Author: ludwig
Date: 2007-07-19 04:05:50 -0400 (Thu, 19 Jul 2007)
New Revision: 1116

Modified:
   trunk/code/game/ai_dmq3.c
Log:
the address of 'classname' will always evaluate as 'true'


Modified: trunk/code/game/ai_dmq3.c
===================================================================
--- trunk/code/game/ai_dmq3.c	2007-07-17 08:12:35 UTC (rev 1115)
+++ trunk/code/game/ai_dmq3.c	2007-07-19 08:05:50 UTC (rev 1116)
@@ -4176,7 +4176,7 @@
 		return 0;
 	}
 	trap_AAS_ValueForBSPEpairKey(ent, "classname", classname, sizeof(classname));
-	if (!classname) {
+	if (!*classname) {
 		BotAI_Print(PRT_ERROR, "BotGetActivateGoal: entity with model %s has no classname\n", model);
 		return 0;
 	}




More information about the quake3-commits mailing list