summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/decks.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/decks.cc')
-rw-r--r--crawl-ref/source/decks.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc
index 04c15feea8..7f44093d9b 100644
--- a/crawl-ref/source/decks.cc
+++ b/crawl-ref/source/decks.cc
@@ -1485,7 +1485,7 @@ static void _warpwright_card(int power, deck_rarity_type rarity)
int count = 0;
coord_def f;
- for (adjacent_iterator ai; ai; ++ai)
+ for (adjacent_iterator ai(you.pos()); ai; ++ai)
if (grd(*ai) == DNGN_FLOOR && !find_trap(*ai) && one_chance_in(++count))
f = *ai;