summaryrefslogtreecommitdiff
path: root/src/gui/widgets/statspagebasic.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-27 01:34:49 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-27 01:34:49 +0300
commit68a7dd225969fcdfb9c07b99db43756a2b1dec7c (patch)
tree644c14f9b178a968a53e742fb5f37aaf29fc062d /src/gui/widgets/statspagebasic.cpp
parentd3f3ec92d583fcaecccb500c8940f33d7228ff89 (diff)
downloadmv-68a7dd225969fcdfb9c07b99db43756a2b1dec7c.tar.gz
mv-68a7dd225969fcdfb9c07b99db43756a2b1dec7c.tar.bz2
mv-68a7dd225969fcdfb9c07b99db43756a2b1dec7c.tar.xz
mv-68a7dd225969fcdfb9c07b99db43756a2b1dec7c.zip
Change attributes value type to int64.
Diffstat (limited to 'src/gui/widgets/statspagebasic.cpp')
-rw-r--r--src/gui/widgets/statspagebasic.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/statspagebasic.cpp b/src/gui/widgets/statspagebasic.cpp
index ec00026d4..249d4f337 100644
--- a/src/gui/widgets/statspagebasic.cpp
+++ b/src/gui/widgets/statspagebasic.cpp
@@ -89,8 +89,8 @@ void StatsPageBasic::statChanged(const AttributesT id,
}
void StatsPageBasic::attributeChanged(const AttributesT id,
- const int oldVal A_UNUSED,
- const int newVal)
+ const int64_t oldVal A_UNUSED,
+ const int64_t newVal)
{
PRAGMA45(GCC diagnostic push)
PRAGMA45(GCC diagnostic ignored "-Wswitch-enum")
@@ -99,7 +99,7 @@ void StatsPageBasic::attributeChanged(const AttributesT id,
case Attributes::PLAYER_CHAR_POINTS:
mCharacterPointsLabel->setCaption(strprintf(
// TRANSLATORS: status window label
- _("Character points: %d"), newVal));
+ _("Character points: %d"), CAST_S32(newVal)));
mCharacterPointsLabel->adjustSize();
// Update all attributes