fix(Scripts/HellfirePeninsula): Add null check for whelp in movement … (#25496)

This commit is contained in:
Andrew 2026-04-17 21:19:33 -03:00 committed by GitHub
parent 4cf677b7d7
commit 1831e2a5a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()));
}