summaryrefslogtreecommitdiff
path: root/src/textcommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/textcommand.cpp')
-rw-r--r--src/textcommand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textcommand.cpp b/src/textcommand.cpp
index 64b70d5df..5e2570f0f 100644
--- a/src/textcommand.cpp
+++ b/src/textcommand.cpp
@@ -129,7 +129,7 @@ void TextCommand::loadImage()
return;
const SpriteDisplay display = ItemDB::get(getIcon()).getDisplay();
- mImage = Loader::getImage(paths.getStringValue("itemIcons").append(
+ mImage = Loader::getImage(pathJoin(paths.getStringValue("itemIcons"),
display.image));
if (!mImage)