From fee9fbce12e620f25aecdc0690285cc47fa8791d Mon Sep 17 00:00:00 2001 From: Stefan Dombrowski Date: Sat, 14 Aug 2010 01:48:07 +0200 Subject: Add missing setAttribute for money Signed-off-by: Jared Adams --- src/net/tmwa/playerhandler.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/net/tmwa') 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 - -- cgit v1.2.3-70-g09d2