From a8041ac28118de1caef73bdac9567c9a7e25e41f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Sep 2017 23:43:44 +0300 Subject: Fix some issues with int64 to int32 implicit conversions. --- src/gui/dialogsmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/dialogsmanager.cpp') 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; -- cgit v1.2.3-60-g2f50