summaryrefslogtreecommitdiff
path: root/src/actorspritemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-18 12:59:52 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:20 +0300
commit77f9d35e736eb7f0f6491b3c6cbe415a8e9ad3cf (patch)
tree16f67d44f5c359e0d8597502d220c4bd3e5625fb /src/actorspritemanager.cpp
parent5d89861c7e83bb9232e11565159b1917052f1467 (diff)
downloadmv-77f9d35e736eb7f0f6491b3c6cbe415a8e9ad3cf.tar.gz
mv-77f9d35e736eb7f0f6491b3c6cbe415a8e9ad3cf.tar.bz2
mv-77f9d35e736eb7f0f6491b3c6cbe415a8e9ad3cf.tar.xz
mv-77f9d35e736eb7f0f6491b3c6cbe415a8e9ad3cf.zip
move virtual member calls from flooritem constuctor into postInit.
Diffstat (limited to 'src/actorspritemanager.cpp')
-rw-r--r--src/actorspritemanager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/actorspritemanager.cpp b/src/actorspritemanager.cpp
index 64693b84c..0ea7a7295 100644
--- a/src/actorspritemanager.cpp
+++ b/src/actorspritemanager.cpp
@@ -250,8 +250,9 @@ FloorItem *ActorSpriteManager::createItem(const int id, const int itemId,
const unsigned char color,
const int subX, const int subY)
{
- FloorItem *const floorItem = new FloorItem(id, itemId, x, y,
- mMap, amount, color, subX, subY);
+ FloorItem *const floorItem = new FloorItem(id, itemId,
+ x, y, amount, color);
+ floorItem->postInit(mMap, subX, subY);
if (!checkForPickup(floorItem))
floorItem->disableHightlight();