diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-11 21:28:33 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-12 09:26:39 +0100 |
commit | a32d122dd8d29cf5982ac1052d9c88c91ce0bcd3 (patch) | |
tree | 1176766cdb09406906cf13c6cda3c15b0917fcd8 /crawl-ref/source/monster.cc | |
parent | f4a4403f65c21eb7a2a0f62f9cac76e1a3b85e9c (diff) | |
download | crawl-ref-a32d122dd8d29cf5982ac1052d9c88c91ce0bcd3.tar.gz crawl-ref-a32d122dd8d29cf5982ac1052d9c88c91ce0bcd3.zip |
Fix another monster_type == -1 check.
Diffstat (limited to 'crawl-ref/source/monster.cc')
-rw-r--r-- | crawl-ref/source/monster.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc index 60acd8e01e..db08f3d07e 100644 --- a/crawl-ref/source/monster.cc +++ b/crawl-ref/source/monster.cc @@ -3505,7 +3505,7 @@ bool monsters::rot(actor *agent, int amount, int immediate, bool quiet) int monsters::hurt(const actor *agent, int amount, beam_type flavour, bool cleanup_dead) { - if (hit_points > 0 && type != -1) + if (alive()) { if (amount == INSTANT_DEATH) amount = hit_points; |