summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/areas.cc
diff options
context:
space:
mode:
authorDracoOmega <draco_omega@live.com>2013-04-26 05:33:39 -0230
committerDracoOmega <draco_omega@live.com>2013-04-26 05:33:39 -0230
commit031e97a33edef1fd3b1b6adcd88e410fad0bfbe7 (patch)
treeee98d52fbdd79c5ac7e9722c9c814b412a5d07ba /crawl-ref/source/areas.cc
parentf1925c40129c316338f7cb06f525b0dcfdf06b51 (diff)
downloadcrawl-ref-031e97a33edef1fd3b1b6adcd88e410fad0bfbe7.tar.gz
crawl-ref-031e97a33edef1fd3b1b6adcd88e410fad0bfbe7.zip
Fix a possible crash with using interlevel recall during the orb run
Diffstat (limited to 'crawl-ref/source/areas.cc')
-rw-r--r--crawl-ref/source/areas.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/areas.cc b/crawl-ref/source/areas.cc
index da879b94da..76736a9015 100644
--- a/crawl-ref/source/areas.cc
+++ b/crawl-ref/source/areas.cc
@@ -171,9 +171,9 @@ static void _update_agrid()
}
- if (you.char_direction == GDT_ASCENDING && !you.duration[DUR_TIME_STEP])
+ if (you.char_direction == GDT_ASCENDING && !you.pos().origin())
{
- ASSERT(!env.orb_pos.origin());
+ ASSERT(env.orb_pos == you.pos());
const int r = 5;
_agrid_centres.push_back(area_centre(AREA_ORB, env.orb_pos, r));