Fixed crash in Object::BuildMovementUpdate

Closes #19940
This commit is contained in:
Shauren
2017-06-23 22:53:49 +02:00
parent 8fb42e5ce2
commit 312ec33f1c

View File

@@ -392,7 +392,7 @@ void Object::BuildMovementUpdate(ByteBuffer* data, uint32 flags) const
bool HasFall = HasFallDirection || unit->m_movementInfo.jump.fallTime != 0;
bool HasSpline = unit->IsSplineEnabled();
*data << GetGUID(); // MoverGUID
*data << GetGUID(); // MoverGUID
*data << uint32(unit->m_movementInfo.time); // MoveTime
*data << float(unit->GetPositionX());
@@ -508,7 +508,7 @@ void Object::BuildMovementUpdate(ByteBuffer* data, uint32 flags) const
if (Rotation)
*data << uint64(ToGameObject()->GetPackedWorldRotation()); // Rotation
if (PauseTimes)
if (PauseTimesCount)
data->append(PauseTimes->data(), PauseTimes->size());
if (HasMovementTransport)