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

--HG--
branch : trunk
This commit is contained in:
megamage
2009-02-21 17:03:39 -06:00
parent 3fb55c922f
commit 4ecbdb128c
5 changed files with 15 additions and 10 deletions
+1 -1
View File
@@ -987,7 +987,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