diff options
Diffstat (limited to 'src/actorspritemanager.cpp')
-rw-r--r-- | src/actorspritemanager.cpp | 5 |
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(); |