summaryrefslogtreecommitdiff
path: root/src/net/tmwa/playerhandler.cpp
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2010-08-14 01:48:07 +0200
committerJared Adams <jaxad0127@gmail.com>2010-08-13 18:07:16 -0600
commitfee9fbce12e620f25aecdc0690285cc47fa8791d (patch)
tree7f68dde25d96f01aee20878ded08befae16a4080 /src/net/tmwa/playerhandler.cpp
parenteb2c0cae1cb7a02b72c15de0f4e8f4a68a9fa53a (diff)
downloadmana-fee9fbce12e620f25aecdc0690285cc47fa8791d.tar.gz
mana-fee9fbce12e620f25aecdc0690285cc47fa8791d.tar.bz2
mana-fee9fbce12e620f25aecdc0690285cc47fa8791d.tar.xz
mana-fee9fbce12e620f25aecdc0690285cc47fa8791d.zip
Add missing setAttribute for money
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
Diffstat (limited to 'src/net/tmwa/playerhandler.cpp')
-rw-r--r--src/net/tmwa/playerhandler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp
index 0079aedc..6a1e8918 100644
--- a/src/net/tmwa/playerhandler.cpp
+++ b/src/net/tmwa/playerhandler.cpp
@@ -301,6 +301,7 @@ void PlayerHandler::handleMessage(Net::MessageIn &msg)
case 0x0014: {
int oldMoney = PlayerInfo::getAttribute(MONEY);
int newMoney = msg.readInt32();
+ PlayerInfo::setAttribute(MONEY, newMoney);
if (newMoney > oldMoney)
SERVER_NOTICE(strprintf(_("You picked up %s."),
Units::formatCurrency(newMoney -