From 49631972db5b965413d4bbe36983a8d5bd203183 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 2 Apr 2017 06:23:19 +0300 Subject: Use pathJoin for concatinate some paths. --- src/textcommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/textcommand.cpp') 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) -- cgit v1.2.3-70-g09d2