mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 21:26:23 +00:00
fix(Core/Minions): Crashfix. (#11592)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user