summaryrefslogtreecommitdiff
path: root/src/gui/dialogsmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/dialogsmanager.cpp')
-rw-r--r--src/gui/dialogsmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/dialogsmanager.cpp b/src/gui/dialogsmanager.cpp
index 8f63662db..f24352a43 100644
--- a/src/gui/dialogsmanager.cpp
+++ b/src/gui/dialogsmanager.cpp
@@ -168,7 +168,7 @@ void DialogsManager::attributeChanged(const AttributesT id,
percent = 50;
const int max = PlayerInfo::getAttribute(
Attributes::MAX_WEIGHT) * percent / 100;
- const int total = oldVal;
+ const int total = CAST_S32(oldVal);
if (newVal >= max && total < max)
{
weightNoticeTime = cur_time + 5;