diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-05-24 01:20:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-05-24 01:20:43 +0300 |
commit | a3360d4c38e8dd43d6e71cc4bd38f8dc96040b2e (patch) | |
tree | 44306e2fb7f38c44ca9ca89a9e21a76b912169ca /src/item.cpp | |
parent | 2bcfc80fe18a7239e2eae5600e4ed118e038da32 (diff) | |
download | mv-a3360d4c38e8dd43d6e71cc4bd38f8dc96040b2e.tar.gz mv-a3360d4c38e8dd43d6e71cc4bd38f8dc96040b2e.tar.bz2 mv-a3360d4c38e8dd43d6e71cc4bd38f8dc96040b2e.tar.xz mv-a3360d4c38e8dd43d6e71cc4bd38f8dc96040b2e.zip |
Dehardcode some old paths.
Diffstat (limited to 'src/item.cpp')
-rw-r--r-- | src/item.cpp | 2 |
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))); |