mirror of
https://github.com/yquake2/rogue.git
synced 2025-04-19 08:41:27 +00:00
Fix missing sanity check, self->enemy can be null.
Suggested by @maraakate, closes #7.
This commit is contained in:
parent
96bec2bf1f
commit
cf6bf166ff
1 changed files with 1 additions and 1 deletions
|
@ -1737,7 +1737,7 @@ medic_checkattack(edict_t *self)
|
|||
}
|
||||
}
|
||||
|
||||
if (self->enemy->client &&
|
||||
if (self->enemy && self->enemy->client &&
|
||||
!visible(self, self->enemy) && (self->monsterinfo.monster_slots > 2))
|
||||
{
|
||||
self->monsterinfo.attack_state = AS_BLIND;
|
||||
|
|
Loading…
Reference in a new issue