diff options
author | Jan-Fabian Humann <malastare@gmx.net> | 2005-05-10 15:17:17 +0000 |
---|---|---|
committer | Jan-Fabian Humann <malastare@gmx.net> | 2005-05-10 15:17:17 +0000 |
commit | 0bc81cb39f48fdade13cf964702072cd9a7e324d (patch) | |
tree | de2d35865253ede90a893da57fc8ab30a599bdb6 /src/gui/itemcontainer.cpp | |
parent | c8a7dd468b50e8cfd84c859f0a03c68b176942e9 (diff) | |
download | mana-client-0bc81cb39f48fdade13cf964702072cd9a7e324d.tar.gz mana-client-0bc81cb39f48fdade13cf964702072cd9a7e324d.tar.bz2 mana-client-0bc81cb39f48fdade13cf964702072cd9a7e324d.tar.xz mana-client-0bc81cb39f48fdade13cf964702072cd9a7e324d.zip |
fixing a bug which occured when ItemManager's constructor calls logger (for example if items.xml is missing)
Diffstat (limited to 'src/gui/itemcontainer.cpp')
-rw-r--r-- | src/gui/itemcontainer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/itemcontainer.cpp b/src/gui/itemcontainer.cpp index fd3020d4..67bae9b0 100644 --- a/src/gui/itemcontainer.cpp +++ b/src/gui/itemcontainer.cpp @@ -80,8 +80,8 @@ void ItemContainer::draw(gcn::Graphics* graphics) itemX -= itemX % 24; if (items[i].quantity > 0) { - if (itemDb.getItemInfo(items[i].id)->getImage() > 0) { - itemset->spriteset[itemDb.getItemInfo( + if (itemDb->getItemInfo(items[i].id)->getImage() > 0) { + itemset->spriteset[itemDb->getItemInfo( items[i].id)->getImage() - 1]->draw( screen, x + itemX, y + itemY); } |