summaryrefslogtreecommitdiff
path: root/src/textcommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/textcommand.cpp')
-rw-r--r--src/textcommand.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/textcommand.cpp b/src/textcommand.cpp
index ec9e97f61..2ca1e3996 100644
--- a/src/textcommand.cpp
+++ b/src/textcommand.cpp
@@ -22,6 +22,8 @@
#include "textcommand.h"
+#include "configuration.h"
+
#include "gui/theme.h"
#include "resources/image.h"
@@ -111,7 +113,8 @@ void TextCommand::loadImage()
ResourceManager *resman = ResourceManager::getInstance();
SpriteDisplay display = ItemDB::get(getIcon()).getDisplay();
- mImage = resman->getImage("graphics/items/" + display.image);
+ mImage = resman->getImage(paths.getStringValue("itemIcons")
+ + display.image);
if (!mImage)
mImage = Theme::getImageFromTheme("unknown-item.png");