diff options
-rw-r--r-- | src/engine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index f1f06514..fc88aff4 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -376,8 +376,8 @@ void Engine::draw() int sy = y - camera_y; int absx = sx * 32 - offset_x; int absy = sy * 32 - offset_y; - if (itemDb.getItemInfo(floorItem->id)->getImage() > 0) { - itemset->spriteset[itemDb.getItemInfo( + if (itemDb->getItemInfo(floorItem->id)->getImage() > 0) { + itemset->spriteset[itemDb->getItemInfo( floorItem->id)->getImage() - 1]->draw(screen, absx, absy); } |