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/equipment.cpp | |
parent | c8a7dd468b50e8cfd84c859f0a03c68b176942e9 (diff) | |
download | mana-0bc81cb39f48fdade13cf964702072cd9a7e324d.tar.gz mana-0bc81cb39f48fdade13cf964702072cd9a7e324d.tar.bz2 mana-0bc81cb39f48fdade13cf964702072cd9a7e324d.tar.xz mana-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/equipment.cpp')
-rw-r--r-- | src/gui/equipment.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/equipment.cpp b/src/gui/equipment.cpp index 8ca23833..802b1e46 100644 --- a/src/gui/equipment.cpp +++ b/src/gui/equipment.cpp @@ -60,7 +60,7 @@ void EquipmentWindow::draw(gcn::Graphics *graphics) for (int i = 0; i < 8; i++) { if (equipments[i].id > 0) { - itemset->spriteset[itemDb.getItemInfo( + itemset->spriteset[itemDb->getItemInfo( equipments[i].id)->getImage() - 1]->draw( screen, x + 24 * (i % 4) + 10, y + 24 * (i / 4) + 25); } @@ -71,7 +71,7 @@ void EquipmentWindow::draw(gcn::Graphics *graphics) graphics->setColor(gcn::Color(0, 0, 0)); graphics->drawRectangle(gcn::Rectangle(110, 25, 20, 20)); if (arrows) { - itemset->spriteset[itemDb.getItemInfo(arrows)->getImage() - 1]->draw( + itemset->spriteset[itemDb->getItemInfo(arrows)->getImage() - 1]->draw( screen, x + 110, y + 25); std::stringstream n; n << arrowsNumber; |