Add 'const' to a spell helper function.

deque
Jordan Ayers 10 years ago
parent a5049fd7b0
commit da9d858201

@ -74,7 +74,7 @@ namespace MWMechanics
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);
///< Adding a spell that is already listed in *this is a no-op.

Loading…
Cancel
Save