summaryrefslogtreecommitdiff
path: root/src/gui/charselectdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/charselectdialog.cpp')
-rw-r--r--src/gui/charselectdialog.cpp5
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());