From e917223c3d97c3a8bdfadd508054961c897bdcca Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Wed, 22 Jul 2009 12:10:13 -0600 Subject: Fix updating the status window when money changes --- src/localplayer.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/localplayer.cpp') diff --git a/src/localplayer.cpp b/src/localplayer.cpp index d20ebcc3..34ab5246 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -911,6 +911,14 @@ void LocalPlayer::setMaxMP(int value) statusWindow->update(StatusWindow::MP); } +void LocalPlayer::setMoney(int value) +{ + mMoney = value; + + if (statusWindow) + statusWindow->update(StatusWindow::MONEY); +} + void LocalPlayer::pickedUp(const ItemInfo &itemInfo, int amount) { if (!amount) -- cgit v1.2.3-70-g09d2