[7313] Optimized checks of presence in std::set Author: zhenya
--HG-- branch : trunk
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user