diff options
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 3 |
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); } } |