fix(Core/Minions): Crashfix. (#11592)
This commit is contained in:
@@ -334,11 +334,12 @@ void Minion::InitStats(uint32 duration)
|
|||||||
|
|
||||||
SetReactState(REACT_PASSIVE);
|
SetReactState(REACT_PASSIVE);
|
||||||
|
|
||||||
Unit* owner = GetOwner();
|
if (Unit* owner = GetOwner())
|
||||||
SetCreatorGUID(owner->GetGUID());
|
{
|
||||||
SetFaction(owner->GetFaction());
|
SetCreatorGUID(owner->GetGUID());
|
||||||
|
SetFaction(owner->GetFaction());
|
||||||
owner->SetMinion(this, true);
|
owner->SetMinion(this, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Minion::RemoveFromWorld()
|
void Minion::RemoveFromWorld()
|
||||||
|
|||||||
Reference in New Issue
Block a user