From e4a1556e09ea38ece9a76b0d190d2b2f29bf5bb9 Mon Sep 17 00:00:00 2001 From: ccrs Date: Sun, 19 May 2019 23:59:52 +0200 Subject: Core/PetAI: apply some movement related corrections Unit::StopMoving() is evil, and so is MotionMaster::Clear() the first can really mess up existing movement generators the second can interrupt "controlled" movements... can do it literally mid-air --- src/server/game/AI/CoreAI/PetAI.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/server/game/AI/CoreAI/PetAI.cpp b/src/server/game/AI/CoreAI/PetAI.cpp index 846021fd5c2..4e18160e553 100644 --- a/src/server/game/AI/CoreAI/PetAI.cpp +++ b/src/server/game/AI/CoreAI/PetAI.cpp @@ -449,7 +449,6 @@ void PetAI::MovementInform(uint32 type, uint32 id) { ClearCharmInfoFlags(); me->GetCharmInfo()->SetIsAtStay(true); - me->GetMotionMaster()->Clear(); me->GetMotionMaster()->MoveIdle(); } break; -- cgit v1.2.3