summaryrefslogtreecommitdiff
path: root/src/textcommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/textcommand.cpp')
-rw-r--r--src/textcommand.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/textcommand.cpp b/src/textcommand.cpp
index 549b32896..7f2a66748 100644
--- a/src/textcommand.cpp
+++ b/src/textcommand.cpp
@@ -115,9 +115,8 @@ void TextCommand::loadImage()
if (getIcon().empty())
return;
- ResourceManager *const resman = ResourceManager::getInstance();
const SpriteDisplay display = ItemDB::get(getIcon()).getDisplay();
- mImage = resman->getImage(paths.getStringValue("itemIcons")
+ mImage = resourceManager->getImage(paths.getStringValue("itemIcons")
.append(display.image));
if (!mImage)