diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-13 19:56:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-13 19:56:05 +0300 |
commit | 38873bb99dea8a8089f1056bc1b28a59ed1f83d3 (patch) | |
tree | 702b19cf37f846f8a777777b958122d2cb562359 /src/being/localplayer.cpp | |
parent | c4d8fa788e0f89d73ba5ae2b66b79ad0351c5fbf (diff) | |
download | manaverse-38873bb99dea8a8089f1056bc1b28a59ed1f83d3.tar.gz manaverse-38873bb99dea8a8089f1056bc1b28a59ed1f83d3.tar.bz2 manaverse-38873bb99dea8a8089f1056bc1b28a59ed1f83d3.tar.xz manaverse-38873bb99dea8a8089f1056bc1b28a59ed1f83d3.zip |
Move virtual methods from Being constructor to postInit.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r-- | src/being/localplayer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index e2b126065..ea64bb0a3 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -110,8 +110,8 @@ extern OkDialog *weightNotice; extern time_t weightNoticeTime; LocalPlayer::LocalPlayer(const BeingId id, - const BeingTypeId subtype) : - Being(id, ActorType::Player, subtype, nullptr), + const BeingTypeId subType) : + Being(id, ActorType::Player), ActorSpriteListener(), AttributeListener(), PlayerDeathListener(), @@ -184,6 +184,7 @@ LocalPlayer::LocalPlayer(const BeingId id, { logger->log1("LocalPlayer::LocalPlayer"); + postInit(subType, nullptr); mAttackRange = 0; mLevel = 1; mAdvanced = true; |