From a3360d4c38e8dd43d6e71cc4bd38f8dc96040b2e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 24 May 2012 01:20:43 +0300 Subject: Dehardcode some old paths. --- src/item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/item.cpp') diff --git a/src/item.cpp b/src/item.cpp index fda05aa30..d484f64cb 100644 --- a/src/item.cpp +++ b/src/item.cpp @@ -106,7 +106,7 @@ Image *Item::getImage(int id, unsigned char color) ResourceManager *resman = ResourceManager::getInstance(); const ItemInfo &info = ItemDB::get(id); SpriteDisplay display = info.getDisplay(); - std::string imagePath = "graphics/items/" + display.image; + std::string imagePath = paths.getStringValue("itemIcons") + display.image; Image *image; image = resman->getImage(combineDye2(imagePath, info.getDyeColorsString(color))); -- cgit v1.2.3-60-g2f50