From ac4d991a1d69ff8258d02e5e71d04c4bc91f1e33 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 10 Oct 2017 21:03:00 +0300 Subject: Fix variable copy in textcommand.cpp --- src/textcommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v1.2.3-70-g09d2