From a32d122dd8d29cf5982ac1052d9c88c91ce0bcd3 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Wed, 11 Nov 2009 21:28:33 +0100 Subject: Fix another monster_type == -1 check. --- crawl-ref/source/monster.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref') 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; -- cgit v1.2.3-54-g00ecf