fix(Core/Minions): Crashfix. (#11592)
This commit is contained in:
parent
1a6ed13dac
commit
8900cab657
1 changed files with 6 additions and 5 deletions
|
|
@ -334,11 +334,12 @@ void Minion::InitStats(uint32 duration)
|
|||
|
||||
SetReactState(REACT_PASSIVE);
|
||||
|
||||
Unit* owner = GetOwner();
|
||||
SetCreatorGUID(owner->GetGUID());
|
||||
SetFaction(owner->GetFaction());
|
||||
|
||||
owner->SetMinion(this, true);
|
||||
if (Unit* owner = GetOwner())
|
||||
{
|
||||
SetCreatorGUID(owner->GetGUID());
|
||||
SetFaction(owner->GetFaction());
|
||||
owner->SetMinion(this, true);
|
||||
}
|
||||
}
|
||||
|
||||
void Minion::RemoveFromWorld()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue