summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index 1a87ea13a6..64355d5209 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -4708,8 +4708,10 @@ void handle_monsters(void)
handle_monster_move(i, monster);
if (!invalid_monster(monster)
- && (monster->x != mx || monster->y != my))
+ && (monster->x != mx || monster->y != my))
+ {
immobile_monster[i] = true;
+ }
// If the player got banished, discard pending monster actions.
if (you.banished)