summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/shopping.cc
diff options
context:
space:
mode:
authorDarshan Shaligram <dshaligram@users.sourceforge.net>2009-12-29 03:59:18 +0530
committerDarshan Shaligram <dshaligram@users.sourceforge.net>2009-12-29 03:59:18 +0530
commit6af92e2651be67206e4f153f73adeaa1e16f0b40 (patch)
tree7277ad605608fcda50bae9315665088baed78625 /crawl-ref/source/shopping.cc
parente9017206fd30a9cb7981d42ee6f8f1809f2f2933 (diff)
downloadcrawl-ref-6af92e2651be67206e4f153f73adeaa1e16f0b40.tar.gz
crawl-ref-6af92e2651be67206e4f153f73adeaa1e16f0b40.zip
Generalise shopping-list-disable-check to need_save; fixes crashes on arena.
Diffstat (limited to 'crawl-ref/source/shopping.cc')
-rw-r--r--crawl-ref/source/shopping.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc
index 8cb0dfa4be..2b5d582316 100644
--- a/crawl-ref/source/shopping.cc
+++ b/crawl-ref/source/shopping.cc
@@ -2430,7 +2430,7 @@ void ShoppingList::move_things(const coord_def &_src, const coord_def &_dst)
void ShoppingList::forget_pos(const level_pos &pos)
{
- if (crawl_state.map_stat_gen || crawl_state.test)
+ if (!crawl_state.need_save)
// Shopping list is unitialized and uneeded.
return;