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 320e295a2..5c0a2b071 100644
--- a/src/textcommand.cpp
+++ b/src/textcommand.cpp
@@ -132,7 +132,7 @@ void TextCommand::loadImage()
}
const ItemInfo &info = ItemDB::get(mIcon);
- const SpriteDisplay display = info.getDisplay();
+ const SpriteDisplay &display = info.getDisplay();
mImage = Loader::getImage(pathJoin(paths.getStringValue("itemIcons"),
display.image));