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
@@ -558,7 +558,7 @@ void SpellHistory::LockSpellSchool(SpellSchoolMask schoolMask, uint32 lockoutTim
|
||||
if (Player* plrOwner = _owner->ToPlayer())
|
||||
{
|
||||
for (auto const& p : plrOwner->GetSpellMap())
|
||||
if (p.second->state != PLAYERSPELL_REMOVED)
|
||||
if (p.second.state != PLAYERSPELL_REMOVED)
|
||||
knownSpells.insert(p.first);
|
||||
}
|
||||
else if (Pet* petOwner = _owner->ToPet())
|
||||
|
||||
Reference in new issue
Block a user