mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 16:20:21 +00:00
Add 'const' to a spell helper function.
This commit is contained in:
parent
a5049fd7b0
commit
da9d858201
@ -74,7 +74,7 @@ namespace MWMechanics
|
|||||||
|
|
||||||
TIterator end() const;
|
TIterator end() const;
|
||||||
|
|
||||||
bool hasSpell(const std::string& spell) { return mSpells.find(Misc::StringUtils::lowerCase(spell)) != mSpells.end(); }
|
bool hasSpell(const std::string& spell) const { return mSpells.find(Misc::StringUtils::lowerCase(spell)) != mSpells.end(); }
|
||||||
|
|
||||||
void add (const std::string& spell);
|
void add (const std::string& spell);
|
||||||
///< Adding a spell that is already listed in *this is a no-op.
|
///< Adding a spell that is already listed in *this is a no-op.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user