diff options
author | Maximilian Philipps <Turmfalke2007@web.de> | 2009-07-05 13:06:14 +0200 |
---|---|---|
committer | Kess Vargavind <vargavind@gmail.com> | 2009-07-17 15:22:06 +0200 |
commit | 12991e1c92d0d0df9e6653f4b8f23811cae635a1 (patch) | |
tree | 4557a9727cdfef76edd698c61c72f730d608fa1d /src/gui/charselectdialog.cpp | |
parent | 8b0a65f00c0e5afb2c177462acd30013afa99b64 (diff) | |
download | mana-12991e1c92d0d0df9e6653f4b8f23811cae635a1.tar.gz mana-12991e1c92d0d0df9e6653f4b8f23811cae635a1.tar.bz2 mana-12991e1c92d0d0df9e6653f4b8f23811cae635a1.tar.xz mana-12991e1c92d0d0df9e6653f4b8f23811cae635a1.zip |
fix: Invalid money display in character selection screen reported by crazy on forum
Diffstat (limited to 'src/gui/charselectdialog.cpp')
-rw-r--r-- | src/gui/charselectdialog.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/charselectdialog.cpp b/src/gui/charselectdialog.cpp index 63a25d45..e93824f8 100644 --- a/src/gui/charselectdialog.cpp +++ b/src/gui/charselectdialog.cpp @@ -300,7 +300,7 @@ void CharSelectDialog::updatePlayerInfo() mJobLevelLabel->setCaption(strprintf(_("Job Level: %d"), pi->mJobLevel)); #endif - mMoneyLabel->setCaption(strprintf(_("Money: %s"), mMoney.c_str())); + mMoneyLabel->setCaption(strprintf(_("Money: %s"),mMoney.c_str())); if (!mCharSelected) { #ifdef TMWSERV_SUPPORT @@ -362,7 +362,10 @@ bool CharSelectDialog::selectByName(const std::string &name) LocalPlayer *player = mCharInfo->getEntry(); if (player && player->getName() == name) + { + mMoney = Units::formatCurrency(player->getMoney()); return true; + } mCharInfo->next(); } while (mCharInfo->getPos()); |