summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-mis.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spl-mis.cc')
-rw-r--r--crawl-ref/source/spl-mis.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-mis.cc b/crawl-ref/source/spl-mis.cc
index 76d2dd8850..63d467ee87 100644
--- a/crawl-ref/source/spl-mis.cc
+++ b/crawl-ref/source/spl-mis.cc
@@ -705,7 +705,7 @@ bool MiscastEffect::_create_monster(monster_type what, int abj_deg,
}
if (alert)
- data.foe = monster_index(mon_target);
+ data.foe = mon_target->mindex();
// No permanent allies from miscasts.
if (data.behaviour == BEH_FRIENDLY && abj_deg == 0)