summaryrefslogtreecommitdiff
path: root/src/gui/windows/statuswindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-27 23:43:44 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-27 23:43:44 +0300
commita8041ac28118de1caef73bdac9567c9a7e25e41f (patch)
treef5c9842626b0ebeb6328566fbd1f0a424fb9af47 /src/gui/windows/statuswindow.cpp
parentf70dcfe0a82db3aee879953f117d12aecc4fce85 (diff)
downloadmanaplus-a8041ac28118de1caef73bdac9567c9a7e25e41f.tar.gz
manaplus-a8041ac28118de1caef73bdac9567c9a7e25e41f.tar.bz2
manaplus-a8041ac28118de1caef73bdac9567c9a7e25e41f.tar.xz
manaplus-a8041ac28118de1caef73bdac9567c9a7e25e41f.zip
Fix some issues with int64 to int32 implicit conversions.
Diffstat (limited to 'src/gui/windows/statuswindow.cpp')
-rw-r--r--src/gui/windows/statuswindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/statuswindow.cpp b/src/gui/windows/statuswindow.cpp
index b86e3e847..092e401c2 100644
--- a/src/gui/windows/statuswindow.cpp
+++ b/src/gui/windows/statuswindow.cpp
@@ -311,7 +311,7 @@ void StatusWindow::attributeChanged(const AttributesT id,
case Attributes::MONEY:
// TRANSLATORS: status window label
mMoneyLabel->setCaption(strprintf(_("Money: %s"),
- UnitsDb::formatCurrency(newVal).c_str()));
+ UnitsDb::formatCurrency64(newVal).c_str()));
mMoneyLabel->adjustSize();
break;
@@ -347,7 +347,7 @@ void StatusWindow::attributeChanged(const AttributesT id,
}
else
{
- lvl = (expNeed - 20000) / 150;
+ lvl = CAST_S32((expNeed - 20000) / 150);
blocked = true;
PlayerInfo::setAttribute(Attributes::PLAYER_JOB_LEVEL,
lvl);