diff options
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index 60df56cedc..05305c5b0c 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -1443,11 +1443,16 @@ int monster_die(monsters *monster, killer_type killer, { bool notice = false; - monsters *killer_mon = &menv[killer_index]; - // If the killer is already dead treat it like an anonymous - // monster. - if (killer_mon->type == -1) - anon = true; + monsters *killer_mon; + if (!anon) + { + killer_mon = &menv[killer_index]; + + // If the killer is already dead treat it like an + // anonymous monster. + if (killer_mon->type == -1) + anon = true; + } const mon_holy_type killer_holy = anon ? MH_NATURAL : mons_holiness(killer_mon); |