diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game/PetAI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/PetAI.cpp b/src/game/PetAI.cpp index f28cf2ecc93..bf368001cc1 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); |