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/being/localplayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/being/localplayer.cpp') diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index 2fc20f6f2..1a12a3808 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -1245,7 +1245,7 @@ void LocalPlayer::attributeChanged(const AttributesT id, break; } case Attributes::PLAYER_BASE_LEVEL: - mLevel = newVal; + mLevel = CAST_S32(newVal); break; case Attributes::PLAYER_HP: if (oldVal != 0 && newVal == 0) @@ -1264,7 +1264,7 @@ void LocalPlayer::attributeChanged(const AttributesT id, { return; } - const int64_t change = newVal - oldVal; + const int32_t change = CAST_S32(newVal - oldVal); addJobMessage(change); break; } -- cgit v1.2.3-60-g2f50