summaryrefslogtreecommitdiff
path: root/src/gui/equipmentwindow.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 03:21:39 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 03:21:39 +0000
commit7593d6c71e2331c3e43c732db60ad03ee4d5385d (patch)
tree3ad242a957b6a500319d7bdae15149c553521ee4 /src/gui/equipmentwindow.cpp
parent81cf85e9ec1d37dc6e8dd9883f42bb50dace9135 (diff)
downloadmana-7593d6c71e2331c3e43c732db60ad03ee4d5385d.tar.gz
mana-7593d6c71e2331c3e43c732db60ad03ee4d5385d.tar.bz2
mana-7593d6c71e2331c3e43c732db60ad03ee4d5385d.tar.xz
mana-7593d6c71e2331c3e43c732db60ad03ee4d5385d.zip
Added Spriteset::get() and Spriteset::size() to hide the member vector and remove the weird mySpriteset->spriteset stuff.
Diffstat (limited to 'src/gui/equipmentwindow.cpp')
-rw-r--r--src/gui/equipmentwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/equipmentwindow.cpp b/src/gui/equipmentwindow.cpp
index f1b9b4ba..9904af02 100644
--- a/src/gui/equipmentwindow.cpp
+++ b/src/gui/equipmentwindow.cpp
@@ -69,7 +69,7 @@ void EquipmentWindow::draw(gcn::Graphics *graphics)
continue;
}
- image = itemset->spriteset[item->getInfo()->getImage() - 1];
+ image = itemset->get(item->getInfo()->getImage() - 1);
dynamic_cast<Graphics*>(graphics)->drawImage(
image, 36 * (i % 4) + 10, 36 * (i / 4) + 25);
}
@@ -81,7 +81,7 @@ void EquipmentWindow::draw(gcn::Graphics *graphics)
return;
}
- image = itemset->spriteset[item->getInfo()->getImage() - 1];
+ image = itemset->get(item->getInfo()->getImage() - 1);
dynamic_cast<Graphics*>(graphics)->drawImage(image, 160, 25);
std::stringstream n;