mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 22:37:04 +00:00
[7313] Optimized checks of presence in std::set
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
7c2e850283
commit
8dbf8cda71
5 changed files with 15 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue