aboutsummaryrefslogtreecommitdiffstats
path: root/code/game
diff options
context:
space:
mode:
authorludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-07-19 08:05:50 +0000
committerludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-07-19 08:05:50 +0000
commitfa00b5ad65cd81ef60a903352a054b98ec22eb8b (patch)
treec5ca2f0ab06a636013d1d77d3d831b7cccc39664 /code/game
parentd48215b8171f8ccc69450784a12e7dc5bf403c49 (diff)
downloadioquake3-aero-fa00b5ad65cd81ef60a903352a054b98ec22eb8b.tar.gz
ioquake3-aero-fa00b5ad65cd81ef60a903352a054b98ec22eb8b.zip
the address of 'classname' will always evaluate as 'true'
git-svn-id: svn://svn.icculus.org/quake3/trunk@1116 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/game')
-rw-r--r--code/game/ai_dmq3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/game/ai_dmq3.c b/code/game/ai_dmq3.c
index 7b9d10f..040dff5 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;
}