summaryrefslogtreecommitdiff
path: root/src/item.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-05-24 01:20:43 +0300
committerAndrei Karas <akaras@inbox.ru>2012-05-24 01:20:43 +0300
commita3360d4c38e8dd43d6e71cc4bd38f8dc96040b2e (patch)
tree44306e2fb7f38c44ca9ca89a9e21a76b912169ca /src/item.cpp
parent2bcfc80fe18a7239e2eae5600e4ed118e038da32 (diff)
downloadmanaplus-a3360d4c38e8dd43d6e71cc4bd38f8dc96040b2e.tar.gz
manaplus-a3360d4c38e8dd43d6e71cc4bd38f8dc96040b2e.tar.bz2
manaplus-a3360d4c38e8dd43d6e71cc4bd38f8dc96040b2e.tar.xz
manaplus-a3360d4c38e8dd43d6e71cc4bd38f8dc96040b2e.zip
Dehardcode some old paths.
Diffstat (limited to 'src/item.cpp')
-rw-r--r--src/item.cpp2
1 files changed, 1 insertions, 1 deletions
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)));