summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-10-29 01:43:53 -0700
committerMatthew Cline <zelgadis@sourceforge.net>2009-10-29 01:43:53 -0700
commit84b73c76a3ef163f74823af3b791fe3830236931 (patch)
tree355f709b46e1b94bd9d91355385fc47aaf1517f1 /crawl-ref/source/player.cc
parent66d9bbd8356dca3d0b07145d1eea21de2d4789cc (diff)
downloadcrawl-ref-84b73c76a3ef163f74823af3b791fe3830236931.tar.gz
crawl-ref-84b73c76a3ef163f74823af3b791fe3830236931.zip
player::del_gold(): use set_gold(), not add_gold()
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index b71d610898..a22fc84079 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -7596,7 +7596,7 @@ void player::add_gold(int delta)
void player::del_gold(int delta)
{
- add_gold(gold - delta);
+ set_gold(gold - delta);
}
void player::set_gold(int amount)