fix(Core): Crashfix. (#12184)
This commit is contained in:
@@ -33,7 +33,8 @@ Totem::Totem(SummonPropertiesEntry const* properties, ObjectGuid owner) : Minion
|
|||||||
|
|
||||||
void Totem::Update(uint32 time)
|
void Totem::Update(uint32 time)
|
||||||
{
|
{
|
||||||
if (!GetOwner()->IsAlive() || !IsAlive())
|
Unit* owner = GetOwner();
|
||||||
|
if (!owner || !owner->IsAlive() || !IsAlive())
|
||||||
{
|
{
|
||||||
UnSummon(); // remove self
|
UnSummon(); // remove self
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user