fix(Scripts/HellfirePeninsula): Another null check (#25497)
This commit is contained in:
parent
1831e2a5a9
commit
7787407477
1 changed files with 1 additions and 5 deletions
|
|
@ -589,9 +589,7 @@ public:
|
|||
for (Creature* whelp : creatureList)
|
||||
{
|
||||
if (whelp && whelp->IsAlive() && !whelp->IsInCombat() && whelp->GetMotionMaster()->GetCurrentMovementGeneratorType() != HOME_MOTION_TYPE)
|
||||
{
|
||||
whelp->GetMotionMaster()->MovePoint(0, me->GetNearPosition(4.0f, whelp->GetOrientation()));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -600,10 +598,8 @@ public:
|
|||
{
|
||||
for (Creature* whelp : creatureList)
|
||||
{
|
||||
if (whelp->IsAlive() && !whelp->IsInCombat() && whelp->GetMotionMaster()->GetCurrentMovementGeneratorType() != HOME_MOTION_TYPE)
|
||||
{
|
||||
if (whelp && whelp->IsAlive() && !whelp->IsInCombat() && whelp->GetMotionMaster()->GetCurrentMovementGeneratorType() != HOME_MOTION_TYPE)
|
||||
whelp->GetMotionMaster()->MoveTargetedHome();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue