fix(Core): Crashfix. (#12581)
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user