summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-27 23:43:44 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-27 23:43:44 +0300
commita8041ac28118de1caef73bdac9567c9a7e25e41f (patch)
treef5c9842626b0ebeb6328566fbd1f0a424fb9af47 /src/being
parentf70dcfe0a82db3aee879953f117d12aecc4fce85 (diff)
downloadManaVerse-a8041ac28118de1caef73bdac9567c9a7e25e41f.tar.gz
ManaVerse-a8041ac28118de1caef73bdac9567c9a7e25e41f.tar.bz2
ManaVerse-a8041ac28118de1caef73bdac9567c9a7e25e41f.tar.xz
ManaVerse-a8041ac28118de1caef73bdac9567c9a7e25e41f.zip
Fix some issues with int64 to int32 implicit conversions.
Diffstat (limited to 'src/being')
-rw-r--r--src/being/localplayer.cpp4
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;
}