Fixed monsters not changing state when enemy goes away

This commit is contained in:
BjossiAlfreds 2019-09-25 20:14:52 +00:00
parent 59cc08fd96
commit 55cfb537a3

View file

@ -1167,7 +1167,7 @@ ai_checkattack(edict_t *self, float dist)
qboolean hesDeadJim; qboolean hesDeadJim;
qboolean retval; qboolean retval;
if (!self || !self->enemy || !self->enemy->inuse) if (!self)
{ {
enemy_vis = false; enemy_vis = false;