fix(Core): Crashfix. (#12581)
This commit is contained in:
@@ -116,7 +116,8 @@ void Totem::UnSummon(uint32 msTime)
|
||||
CombatStop();
|
||||
RemoveAurasDueToSpell(GetSpell(), GetGUID());
|
||||
|
||||
Unit* owner = GetOwner();
|
||||
if (Unit* owner = GetOwner())
|
||||
{
|
||||
// clear owner's totem slot
|
||||
for (uint8 i = SUMMON_SLOT_TOTEM; i < MAX_TOTEM_SLOT; ++i)
|
||||
{
|
||||
@@ -151,6 +152,7 @@ void Totem::UnSummon(uint32 msTime)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
AddObjectToRemoveList();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user