summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/monstuff.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index 936a093742..dc16649615 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -764,7 +764,7 @@ static void _mummy_curse(monsters* monster, killer_type killer, int index)
void monster_die(monsters *monster, killer_type killer,
int killer_index, bool silent)
{
- if (monster->type == -1)
+ if (invalid_monster(monster))
return;
if (!silent && _monster_avoided_death(monster, killer, killer_index))