diff options
Diffstat (limited to 'src/gui/itemcontainer.cpp')
-rw-r--r-- | src/gui/itemcontainer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/itemcontainer.cpp b/src/gui/itemcontainer.cpp index 61dad053..bb10c5a9 100644 --- a/src/gui/itemcontainer.cpp +++ b/src/gui/itemcontainer.cpp @@ -75,8 +75,9 @@ void ItemContainer::draw(gcn::Graphics* graphics) int itemY = (((i - 2) * 24) / (getWidth() - 24)) * 24; itemX -= itemX % 24; if (items[i].quantity > 0) { - if (itemDb.getImage(items[i].id) > 0) { - itemset->spriteset[itemDb.getImage(items[i].id) - 1]->draw( + if (itemDb.getItemInfo(items[i].id)->getImage() > 0) { + itemset->spriteset[itemDb.getItemInfo( + items[i].id)->getImage() - 1]->draw( screen, x + itemX, y + itemY); } |