From e0b255453f189f80aab146574bdcb873771801c6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 24 Mar 2013 14:18:13 +0300 Subject: improve textcommand class. --- 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 af2c5a31e..8747c4d57 100644 --- a/src/textcommand.cpp +++ b/src/textcommand.cpp @@ -115,7 +115,7 @@ void TextCommand::loadImage() return; ResourceManager *const resman = ResourceManager::getInstance(); - SpriteDisplay display = ItemDB::get(getIcon()).getDisplay(); + const SpriteDisplay display = ItemDB::get(getIcon()).getDisplay(); mImage = resman->getImage(paths.getStringValue("itemIcons") .append(display.image)); -- cgit v1.2.3-70-g09d2