diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-21 15:36:49 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-21 15:36:49 +0000 |
commit | 56fef6eed9e3145b5e7d33e066069f642873d7a1 (patch) | |
tree | 10ee9c20bfa294abbbb2b96901bc0b2830007288 /src/gui/itemcontainer.cpp | |
parent | 9db3ea6a43d78bc959eef9fd594141d3a4063c0b (diff) | |
download | mana-56fef6eed9e3145b5e7d33e066069f642873d7a1.tar.gz mana-56fef6eed9e3145b5e7d33e066069f642873d7a1.tar.bz2 mana-56fef6eed9e3145b5e7d33e066069f642873d7a1.tar.xz mana-56fef6eed9e3145b5e7d33e066069f642873d7a1.zip |
trying to follow Hammerbear suggestions
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); } |