summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/shopping.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/shopping.cc')
-rw-r--r--crawl-ref/source/shopping.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc
index 1aac684a98..d03614cce9 100644
--- a/crawl-ref/source/shopping.cc
+++ b/crawl-ref/source/shopping.cc
@@ -2411,7 +2411,7 @@ bool ShoppingList::items_are_same(const item_def& item_a,
void ShoppingList::move_things(const coord_def &_src, const coord_def &_dst)
{
- if (crawl_state.map_stat_gen)
+ if (crawl_state.map_stat_gen || crawl_state.test)
// Shopping list is unitialized and uneeded.
return;
@@ -2429,7 +2429,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)
+ if (crawl_state.map_stat_gen || crawl_state.test)
// Shopping list is unitialized and uneeded.
return;