summaryrefslogtreecommitdiff
path: root/src/actormanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-28 14:30:31 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-28 14:30:31 +0300
commit462867b1d99cf63a27566449cbf8f0feda7f1ec6 (patch)
tree3d4a159827bc5af72a2c5aedc89698fee44033c2 /src/actormanager.cpp
parentbc27e1bc29ab07a8560db30355ca3aeb3cfb724f (diff)
downloadmv-462867b1d99cf63a27566449cbf8f0feda7f1ec6.tar.gz
mv-462867b1d99cf63a27566449cbf8f0feda7f1ec6.tar.bz2
mv-462867b1d99cf63a27566449cbf8f0feda7f1ec6.tar.xz
mv-462867b1d99cf63a27566449cbf8f0feda7f1ec6.zip
Revert "Remove setMap from being constructor."
This reverts commit 9cf563fa7f4059bfddd82efdaa89df2ed07a6d7c.
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r--src/actormanager.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}