summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/xom.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-03-06 11:56:02 -0700
committerSteve Melenchuk <smelenchuk@gmail.com>2014-03-06 11:56:02 -0700
commit587b4fded1ad0b496cce0a708282ca00d3c1dc84 (patch)
treea729f912e7582b8ebdc584e59629f42842ecf041 /crawl-ref/source/xom.cc
parent6f24510ddd6b1be80c396e74d537a9a915535ebc (diff)
downloadcrawl-ref-587b4fded1ad0b496cce0a708282ca00d3c1dc84.tar.gz
crawl-ref-587b4fded1ad0b496cce0a708282ca00d3c1dc84.zip
Don't crash on semicontrolled blink (#8236).
Broken by a5274fd.
Diffstat (limited to 'crawl-ref/source/xom.cc')
-rw-r--r--crawl-ref/source/xom.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc
index 5caa0b5f4b..89fbb53eea 100644
--- a/crawl-ref/source/xom.cc
+++ b/crawl-ref/source/xom.cc
@@ -1978,8 +1978,8 @@ static int _xom_change_scenery(bool debug = false)
const int max_altars = max(1, random2(random2(14)));
for (int tries = max_altars; tries > 0; --tries)
{
- if ((random_near_space(you.pos(), place, false)
- || random_near_space(you.pos(), place, true))
+ if ((random_near_space(&you, you.pos(), place, false)
+ || random_near_space(&you, you.pos(), place, true))
&& grd(place) == DNGN_FLOOR)
{
if (debug)