summaryrefslogtreecommitdiff
path: root/src/gui/equipment.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-04-21 15:36:49 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-04-21 15:36:49 +0000
commit56fef6eed9e3145b5e7d33e066069f642873d7a1 (patch)
tree10ee9c20bfa294abbbb2b96901bc0b2830007288 /src/gui/equipment.cpp
parent9db3ea6a43d78bc959eef9fd594141d3a4063c0b (diff)
downloadmana-client-56fef6eed9e3145b5e7d33e066069f642873d7a1.tar.gz
mana-client-56fef6eed9e3145b5e7d33e066069f642873d7a1.tar.bz2
mana-client-56fef6eed9e3145b5e7d33e066069f642873d7a1.tar.xz
mana-client-56fef6eed9e3145b5e7d33e066069f642873d7a1.zip
trying to follow Hammerbear suggestions
Diffstat (limited to 'src/gui/equipment.cpp')
-rw-r--r--src/gui/equipment.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/equipment.cpp b/src/gui/equipment.cpp
index 1c559263..95e9998c 100644
--- a/src/gui/equipment.cpp
+++ b/src/gui/equipment.cpp
@@ -58,7 +58,8 @@ void EquipmentWindow::draw(gcn::Graphics *graphics)
for (int i = 0; i < 8; i++) {
if (equipments[i].id > 0) {
- itemset->spriteset[itemDb.getImage(equipments[i].id) - 1]->draw(
+ itemset->spriteset[itemDb.getItemInfo(
+ equipments[i].id)->getImage() - 1]->draw(
screen, x + 22, y + 24 * i + 20);
}
graphics->setColor(gcn::Color(0, 0, 0));