From 68a7dd225969fcdfb9c07b99db43756a2b1dec7c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Sep 2017 01:34:49 +0300 Subject: Change attributes value type to int64. --- src/gui/widgets/statspagebasic.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets/statspagebasic.cpp') 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 -- cgit v1.2.3-60-g2f50