summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-29 14:53:58 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-29 14:53:58 +0000
commitd372bf943a90bb9ca949d92724b98762b25d57a6 (patch)
treeab55561aa9c19cc2cbe95fd01a6dfe549810fa0e /crawl-ref/source/monstuff.cc
parentf8ea72f9b61219a187d9e3a026de32e46c35f789 (diff)
downloadcrawl-ref-d372bf943a90bb9ca949d92724b98762b25d57a6.tar.gz
crawl-ref-d372bf943a90bb9ca949d92724b98762b25d57a6.zip
Simplify.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7069 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-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))