diff options
-rw-r--r-- | crawl-ref/source/effects.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index 08b62e4e00..c161837a6f 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -322,8 +322,8 @@ int torment_monsters(coord_def where, int pow, int caster, actor *attacker) // because it can't kill them, and because hostile monsters use // it. It does alert them, though. // XXX: attacker isn't passed through "int torment()". - if (attacker != NULL) - behaviour_event(monster, ME_ALERT, attacker->mindex()); + behaviour_event(monster, ME_ALERT, + attacker ? attacker->mindex() : MHITNOT); } monster->hurt(NULL, hploss, BEAM_TORMENT_DAMAGE); |