summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/mon-act.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-act.cc b/crawl-ref/source/mon-act.cc
index 4ed2fe4afa..49af0eacbe 100644
--- a/crawl-ref/source/mon-act.cc
+++ b/crawl-ref/source/mon-act.cc
@@ -1899,8 +1899,10 @@ static void _handle_monster_move(monsters *monster)
mon_nearby_ability(monster);
if (monster->type == MONS_KHUFU && monster->number
- && monster->hit_points==monster->max_hit_points)
+ && monster->hit_points == monster->max_hit_points)
+ {
_khufu_drop_tomb(monster);
+ }
if (!monster->asleep() && !mons_is_wandering(monster)
// Berserking monsters are limited to running up and