diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-27 23:43:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-27 23:43:44 +0300 |
commit | a8041ac28118de1caef73bdac9567c9a7e25e41f (patch) | |
tree | f5c9842626b0ebeb6328566fbd1f0a424fb9af47 /src/gui/windows/statuswindow.cpp | |
parent | f70dcfe0a82db3aee879953f117d12aecc4fce85 (diff) | |
download | manaverse-a8041ac28118de1caef73bdac9567c9a7e25e41f.tar.gz manaverse-a8041ac28118de1caef73bdac9567c9a7e25e41f.tar.bz2 manaverse-a8041ac28118de1caef73bdac9567c9a7e25e41f.tar.xz manaverse-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.cpp | 4 |
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); |