summaryrefslogtreecommitdiff
path: root/src/item.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/item.cpp')
-rw-r--r--src/item.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/item.cpp b/src/item.cpp
index b434387e..6e55ad0a 100644
--- a/src/item.cpp
+++ b/src/item.cpp
@@ -58,8 +58,9 @@ void Item::setId(int id)
mDrawImage->decRef();
ResourceManager *resman = ResourceManager::getInstance();
+ SpriteDisplay display = getInfo().getDisplay();
std::string imagePath = paths.getValue("itemIcons", "graphics/items/")
- + getInfo().getImageName();
+ + display.image;
mImage = resman->getImage(imagePath);
mDrawImage = resman->getImage(imagePath);