From 462867b1d99cf63a27566449cbf8f0feda7f1ec6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 28 Oct 2013 14:30:31 +0300 Subject: Revert "Remove setMap from being constructor." This reverts commit 9cf563fa7f4059bfddd82efdaa89df2ed07a6d7c. --- src/actormanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/actormanager.cpp') diff --git a/src/actormanager.cpp b/src/actormanager.cpp index 694b1de36..f37cc9a18 100644 --- a/src/actormanager.cpp +++ b/src/actormanager.cpp @@ -238,8 +238,8 @@ Being *ActorManager::createBeing(const int id, const ActorSprite::Type type, const uint16_t subtype) { - Being *const being = new Being(id, type, subtype); - being->setMap(mMap); + Being *const being = new Being(id, type, subtype, mMap); + mActors.insert(being); return being; } -- cgit v1.2.3-60-g2f50