Core/Players: Directly store PlayerSpell in m_spells, not as pointer
This commit is contained in:
1 parent
74cf7fa413
commit
64bc20bf35
6 files changed
+83
-96
No files matched your search
@@ -5833,7 +5833,7 @@ void Unit::ModifyAuraState(AuraStateType flag, bool apply)
|
||||
PlayerSpellMap const& sp_list = ToPlayer()->GetSpellMap();
|
||||
for (PlayerSpellMap::const_iterator itr = sp_list.begin(); itr != sp_list.end(); ++itr)
|
||||
{
|
||||
if (itr->second->state == PLAYERSPELL_REMOVED || itr->second->disabled)
|
||||
if (itr->second.state == PLAYERSPELL_REMOVED || itr->second.disabled)
|
||||
continue;
|
||||
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(itr->first);
|
||||
if (!spellInfo || !spellInfo->IsPassive())
|
||||
|
||||
Reference in new issue
Block a user