summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-11-02 00:18:27 -0800
committerMatthew Cline <zelgadis@sourceforge.net>2009-11-02 00:19:26 -0800
commita3673d5b42142d7f495a37f1e4f9569c6b176919 (patch)
treec9b2b92ad4b5f96a6c4dc1ba9ec48eccc58ec725 /crawl-ref/source/player.cc
parent945b0cd6507cb5453e099e0cc245706f70c87d98 (diff)
downloadcrawl-ref-a3673d5b42142d7f495a37f1e4f9569c6b176919.tar.gz
crawl-ref-a3673d5b42142d7f495a37f1e4f9569c6b176919.zip
Ziggurats can now be added to the shopping list.
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc3
1 files changed, 2 insertions, 1 deletions
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);
}
}