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.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spl-mis.cc b/crawl-ref/source/spl-mis.cc
index b7022461ec..96339da003 100644
--- a/crawl-ref/source/spl-mis.cc
+++ b/crawl-ref/source/spl-mis.cc
@@ -706,8 +706,8 @@ bool MiscastEffect::_create_monster(monster_type what, int abj_deg,
(crawl_state.is_god_acting()) ? crawl_state.which_god_acting()
: GOD_NO_GOD;
- mgen_data data = mgen_data::hostile_at(what, target->pos(),
- abj_deg, 0, alert, god);
+ mgen_data data = mgen_data::hostile_at(what, alert,
+ abj_deg, 0, target->pos(), 0, god);
// hostile_at() assumes the monster is hostile to the player,
// but should be hostile to the target monster unless the miscast