diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-27 23:43:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-27 23:43:44 +0300 |
commit | a8041ac28118de1caef73bdac9567c9a7e25e41f (patch) | |
tree | f5c9842626b0ebeb6328566fbd1f0a424fb9af47 /src/being/localplayer.cpp | |
parent | f70dcfe0a82db3aee879953f117d12aecc4fce85 (diff) | |
download | mv-a8041ac28118de1caef73bdac9567c9a7e25e41f.tar.gz mv-a8041ac28118de1caef73bdac9567c9a7e25e41f.tar.bz2 mv-a8041ac28118de1caef73bdac9567c9a7e25e41f.tar.xz mv-a8041ac28118de1caef73bdac9567c9a7e25e41f.zip |
Fix some issues with int64 to int32 implicit conversions.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r-- | src/being/localplayer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |