From a0316f93973397d41cbb3d2e9cf432db196f6277 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Thu, 19 Jul 2007 08:05:50 +0000 Subject: [PATCH] the address of 'classname' will always evaluate as 'true' --- code/game/ai_dmq3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/ai_dmq3.c b/code/game/ai_dmq3.c index 7b9d10fe..040dff50 100644 --- a/code/game/ai_dmq3.c +++ b/code/game/ai_dmq3.c @@ -4176,7 +4176,7 @@ int BotGetActivateGoal(bot_state_t *bs, int entitynum, bot_activategoal_t *activ 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; }