From a3673d5b42142d7f495a37f1e4f9569c6b176919 Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Mon, 2 Nov 2009 00:18:27 -0800 Subject: Ziggurats can now be added to the shopping list. --- crawl-ref/source/player.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 1e1fa06931..7633583934 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -7624,7 +7624,8 @@ void player::set_gold(int amount) if (amount != gold) { - shopping_list.gold_changed(gold, amount); + const int old_gold = gold; gold = amount; + shopping_list.gold_changed(old_gold, gold); } } -- cgit v1.2.3-54-g00ecf