summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/textcommand.cpp2
-rw-r--r--src/textcommand.h2
2 files changed, 2 insertions, 2 deletions
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));
diff --git a/src/textcommand.h b/src/textcommand.h
index bd70026ea..8a1a089c1 100644
--- a/src/textcommand.h
+++ b/src/textcommand.h
@@ -122,7 +122,7 @@ class TextCommand final
unsigned getSchoolLvl() const A_WARN_UNUSED
{ return mSchoolLvl; }
- TextCommandType getCommandType() const
+ TextCommandType getCommandType() const A_WARN_UNUSED
{ return mCommandType; }
void setCommand(std::string command)