fix(Scripts/HellfirePeninsula): Another null check (#25497)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user