From 5aaecc4b6f47c420d3527ed8355d9415088805c4 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Thu, 17 Dec 2009 21:38:26 +0100 Subject: Fix shopping list uninitialized asserts in 'crawl -test'. --- crawl-ref/source/shopping.cc | 4 ++-- 1 file 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; -- cgit v1.2.3-54-g00ecf