mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-24 13:11:30 +00:00
the address of 'classname' will always evaluate as 'true'
This commit is contained in:
parent
821995dcf1
commit
a0316f9397
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue