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
@@ -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())