fix(Scripts/HellfirePeninsula): Add null check for whelp in movement … (#25496)
This commit is contained in:
@@ -588,7 +588,7 @@ 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()->MovePoint(0, me->GetNearPosition(4.0f, whelp->GetOrientation()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user