From 38873bb99dea8a8089f1056bc1b28a59ed1f83d3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 13 Jun 2017 19:56:05 +0300 Subject: Move virtual methods from Being constructor to postInit. --- src/actormanager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/actormanager.cpp') 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); -- cgit v1.2.3-60-g2f50