diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2014-03-06 11:56:02 -0700 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-03-06 11:56:02 -0700 |
commit | 587b4fded1ad0b496cce0a708282ca00d3c1dc84 (patch) | |
tree | a729f912e7582b8ebdc584e59629f42842ecf041 /crawl-ref/source/xom.cc | |
parent | 6f24510ddd6b1be80c396e74d537a9a915535ebc (diff) | |
download | crawl-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.cc | 4 |
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) |