aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorccrs <ccrs@users.noreply.github.com>2019-05-19 23:59:52 +0200
committerccrs <ccrs@users.noreply.github.com>2019-05-19 23:59:52 +0200
commite4a1556e09ea38ece9a76b0d190d2b2f29bf5bb9 (patch)
treeefb9272eb30d5227a2c0a52c7452437a9acc1e0f /src
parentc826ec0a3c17f86f8a3e44455c533fb46f239720 (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
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 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;