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 79ccd2c3..19bb7c23 100644
--- a/src/item.cpp
+++ b/src/item.cpp
@@ -57,7 +57,8 @@ void Item::setId(int id)
mDrawImage->decRef();
ResourceManager *resman = ResourceManager::getInstance();
- std::string imagePath = "graphics/items/" + getInfo().getImageName();
+ SpriteDisplay display = getInfo().getDisplay();
+ std::string imagePath = "graphics/items/" + display.image;
mImage = resman->getImage(imagePath);
mDrawImage = resman->getImage(imagePath);