summaryrefslogtreecommitdiff
path: root/src/gui/windows/charselectdialog.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/charselectdialog.cpp
parentf70dcfe0a82db3aee879953f117d12aecc4fce85 (diff)
downloadmv-a8041ac28118de1caef73bdac9567c9a7e25e41f.tar.gz
mv-a8041ac28118de1caef73bdac9567c9a7e25e41f.tar.bz2
mv-a8041ac28118de1caef73bdac9567c9a7e25e41f.tar.xz
mv-a8041ac28118de1caef73bdac9567c9a7e25e41f.zip
Fix some issues with int64 to int32 implicit conversions.
Diffstat (limited to 'src/gui/windows/charselectdialog.cpp')
-rw-r--r--src/gui/windows/charselectdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp
index aa4a80b4a..7b43aca09 100644
--- a/src/gui/windows/charselectdialog.cpp
+++ b/src/gui/windows/charselectdialog.cpp
@@ -259,8 +259,8 @@ void CharSelectDialog::action(const ActionEvent &event)
CAST_U32(
character->data.mAttributes[Attributes::PLAYER_BASE_LEVEL]),
strExp.c_str(),
- UnitsDb::formatCurrency(
- character->data.mAttributes[Attributes::MONEY]).c_str());
+ UnitsDb::formatCurrency(CAST_S32(
+ character->data.mAttributes[Attributes::MONEY])).c_str());
CREATEWIDGET(OkDialog, data->getName(), msg,
// TRANSLATORS: ok dialog button
_("OK"),