mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[9440] Store in plauer spell list structure instead pointer.
Just not reason in element persistanse storage as std::map store pointer to structure with size < 16 bits.
This commit is contained in:
parent
528b2cf324
commit
6295275529
6 changed files with 71 additions and 80 deletions
|
|
@ -8470,7 +8470,7 @@ void Unit::ModifyAuraState(AuraState flag, bool apply)
|
|||
const PlayerSpellMap& sp_list = ((Player*)this)->GetSpellMap();
|
||||
for (PlayerSpellMap::const_iterator itr = sp_list.begin(); itr != sp_list.end(); ++itr)
|
||||
{
|
||||
if(itr->second->state == PLAYERSPELL_REMOVED) continue;
|
||||
if(itr->second.state == PLAYERSPELL_REMOVED) continue;
|
||||
SpellEntry const *spellInfo = sSpellStore.LookupEntry(itr->first);
|
||||
if (!spellInfo || !IsPassiveSpell(itr->first)) continue;
|
||||
if (spellInfo->CasterAuraState == flag)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue