summaryrefslogtreecommitdiff
path: root/src/actormanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-13 19:56:05 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-13 19:56:05 +0300
commit38873bb99dea8a8089f1056bc1b28a59ed1f83d3 (patch)
tree702b19cf37f846f8a777777b958122d2cb562359 /src/actormanager.cpp
parentc4d8fa788e0f89d73ba5ae2b66b79ad0351c5fbf (diff)
downloadmanaplus-38873bb99dea8a8089f1056bc1b28a59ed1f83d3.tar.gz
manaplus-38873bb99dea8a8089f1056bc1b28a59ed1f83d3.tar.bz2
manaplus-38873bb99dea8a8089f1056bc1b28a59ed1f83d3.tar.xz
manaplus-38873bb99dea8a8089f1056bc1b28a59ed1f83d3.zip
Move virtual methods from Being constructor to postInit.
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r--src/actormanager.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp
index 44e8e7cb7..bef691a71 100644
--- a/src/actormanager.cpp
+++ b/src/actormanager.cpp
@@ -277,7 +277,10 @@ Being *ActorManager::createBeing(const BeingId id,
const ActorTypeT type,
const BeingTypeId subtype)
{
- Being *const being = new Being(id, type, subtype, mMap);
+ Being *const being = Being::createBeing(id,
+ type,
+ subtype,
+ mMap);
mActors.insert(being);