Core/Players: Directly store PlayerSpell in m_spells, not as pointer

This commit is contained in:
Shauren authored and Ovahlord committed 2020-09-07 21:36:13 +02:00
1 parent 74cf7fa413
commit 64bc20bf35
6 files changed
+83 -96

No files matched your search

+1 -1
View File
@@ -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())