mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 14:16:31 +00:00
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)
|
||||
{
|
||||
if (!GetOwner()->IsAlive() || !IsAlive())
|
||||
Unit* owner = GetOwner();
|
||||
if (!owner || !owner->IsAlive() || !IsAlive())
|
||||
{
|
||||
UnSummon(); // remove self
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user