[7313] Optimized checks of presence in std::set

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
zhenya 2009-02-21 08:48:37 +03:00 committed by VladimirMangos
parent 7c2e850283
commit 8dbf8cda71
5 changed files with 15 additions and 10 deletions

View file

@ -900,7 +900,7 @@ class SpellMgr
bool IsSpellLearnSpell(uint32 spell_id) const
{
return mSpellLearnSpells.count(spell_id)!=0;
return mSpellLearnSpells.find(spell_id) != mSpellLearnSpells.end();
}
SpellLearnSpellMap::const_iterator GetBeginSpellLearnSpell(uint32 spell_id) const