From d372bf943a90bb9ca949d92724b98762b25d57a6 Mon Sep 17 00:00:00 2001 From: dolorous Date: Mon, 29 Sep 2008 14:53:58 +0000 Subject: Simplify. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7069 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/monstuff.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/monstuff.cc') 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)) -- cgit v1.2.3-54-g00ecf