summaryrefslogtreecommitdiff
path: root/src/spellmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/spellmanager.h')
-rw-r--r--src/spellmanager.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/spellmanager.h b/src/spellmanager.h
index db4abff1c..e6323da51 100644
--- a/src/spellmanager.h
+++ b/src/spellmanager.h
@@ -45,13 +45,14 @@ class SpellManager final
TextCommand *getSpell(const int spellId) const A_WARN_UNUSED;
- TextCommand* getSpellByItem(const int itemId) const A_WARN_UNUSED;
+ const TextCommand* getSpellByItem(const int itemId)
+ const A_WARN_UNUSED;
bool addSpell(TextCommand *const spell);
TextCommand *createNewSpell() const A_WARN_UNUSED;
- std::vector<TextCommand*> getAll() const A_WARN_UNUSED;
+ const std::vector<TextCommand*> &getAll() const A_WARN_UNUSED;
void useItem(const int itemId) const;