Core/Movement: fixed a typo in MoveTakeoff that was causing flying creatures not lifting off properly

This commit is contained in:
Ovahlord
2019-10-06 06:57:18 +02:00
parent 6fe707532f
commit 5cd48b2afc

View File

@@ -344,7 +344,7 @@ void MotionMaster::MoveTakeoff(uint32 id, Position const& pos)
TC_LOG_DEBUG("movement.motionmaster", "MotionMaster::MoveTakeoff: '%s', landing point Id: %u (X: %f, Y: %f, Z: %f)", _owner->GetGUID().ToString().c_str(), id, pos.GetPositionX(), pos.GetPositionY(), pos.GetPositionZ());
Movement::MoveSplineInit init(_owner);
init.MoveTo(PositionToVector3(pos));
init.MoveTo(PositionToVector3(pos), false);
init.SetSmooth();
init.SetFly();
init.SetAnimation(Movement::ToFly);