summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index d06129f7cd..0deb563c7e 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -2731,7 +2731,7 @@ static void _catchup_monster_moves(monsters *mon, int turns)
|| ranged_attack
|| coinflip()))
{
- if (mon->behaviour != BEH_WANDER)
+ if (!mons_is_wandering(mon))
{
mon->behaviour = BEH_WANDER;
mon->foe = MHITNOT;