fix(Scripts/HellfirePeninsula): Add null check for whelp in movement … (#25496)
This commit is contained in:
parent
4cf677b7d7
commit
1831e2a5a9
1 changed files with 1 additions and 1 deletions
|
|
@ -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()));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue