From bcecffd8505d2c1dd48a0e69b853a7279e33592c Mon Sep 17 00:00:00 2001
From: Eugenio Favalli <elvenprogrammer@gmail.com>
Date: Mon, 7 Feb 2005 09:09:39 +0000
Subject: Cleaning and preparing to add equipment

---
 src/gui/itemcontainer.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/gui/itemcontainer.cpp b/src/gui/itemcontainer.cpp
index 07bc401d..123270c2 100644
--- a/src/gui/itemcontainer.cpp
+++ b/src/gui/itemcontainer.cpp
@@ -28,8 +28,8 @@
 ItemContainer::ItemContainer()
 {
     ResourceManager *resman = ResourceManager::getInstance();
-    Image *itemImg = resman->getImage("graphic/items.bmp");
-    if (!itemImg) error("Unable to load items.bmp");
+    Image *itemImg = resman->getImage("core/graphics/sprites/items.png");
+    if (!itemImg) error("Unable to load items.png");
     itemset = new Spriteset(itemImg, 20, 20);
 
     selectedItem = -1; /**< No item selected */
@@ -58,9 +58,10 @@ void ItemContainer::draw(gcn::Graphics* graphics)
         
     for (int i = 0; i < INVENTORY_SIZE; i++) {
         if (items[i].quantity > 0) {
-            if (items[i].id >= 501 && items[i].id <= 511) {
+            if (items[i].id >= 501 && items[i].id <= 2301) {
                 itemset->spriteset[items[i].id - 501]->draw(screen,
                         x + 24 * i, y + 2);
+
             }
 
             std::stringstream ss;
-- 
cgit v1.2.3-70-g09d2