aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorccrs <ccrs@users.noreply.github.com>2019-05-19 23:59:52 +0200
committerShauren <shauren.trinity@gmail.com>2021-12-05 23:01:22 +0100
commit14712653dd813789bb47165621416e56eac47c8e (patch)
treee8239591ff6f93f3f177dff74c76c6b587779f92 /src
parent476566871879abe51a48833a01cec427dd7c6b8e (diff)
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 (cherry picked from commit e4a1556e09ea38ece9a76b0d190d2b2f29bf5bb9)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/AI/CoreAI/PetAI.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/server/game/AI/CoreAI/PetAI.cpp b/src/server/game/AI/CoreAI/PetAI.cpp
index 7c46ed4aa6c..67ae4ebb115 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;