fix(Core): Crashfix. (#12581)

This commit is contained in:
UltraNix
2022-07-30 16:59:30 +02:00
committed by GitHub
parent d580ca4f31
commit bba9b9ce79
+3 -1
View File
@@ -116,7 +116,8 @@ void Totem::UnSummon(uint32 msTime)
CombatStop(); CombatStop();
RemoveAurasDueToSpell(GetSpell(), GetGUID()); RemoveAurasDueToSpell(GetSpell(), GetGUID());
Unit* owner = GetOwner(); if (Unit* owner = GetOwner())
{
// clear owner's totem slot // clear owner's totem slot
for (uint8 i = SUMMON_SLOT_TOTEM; i < MAX_TOTEM_SLOT; ++i) for (uint8 i = SUMMON_SLOT_TOTEM; i < MAX_TOTEM_SLOT; ++i)
{ {
@@ -151,6 +152,7 @@ void Totem::UnSummon(uint32 msTime)
} }
} }
} }
}
AddObjectToRemoveList(); AddObjectToRemoveList();
} }