diff --git a/src/game/PetAI.cpp b/src/game/PetAI.cpp index f28cf2ecc9..bf368001cc 100644 --- a/src/game/PetAI.cpp +++ b/src/game/PetAI.cpp @@ -415,7 +415,7 @@ void PetAI::MovementInform(uint32 moveType, uint32 data) { // If data is owner's GUIDLow then we've reached follow point, // otherwise we're probably chasing a creature - if (data == me->GetCharmerOrOwner()->GetGUIDLow() && me->GetCharmInfo()->IsReturning()) + if (me->GetCharmerOrOwner() && me->GetCharmInfo() && data == me->GetCharmerOrOwner()->GetGUIDLow() && me->GetCharmInfo()->IsReturning()) { me->GetCharmInfo()->SetIsAtStay(false); me->GetCharmInfo()->SetIsReturning(false);