Core/Transports: fixed a typo that was causing client crashes uppon relogging outside of instances

This commit is contained in:
Ovahlord
2019-09-15 19:57:30 +02:00
parent 4bad4757f1
commit ba3084d1a4

View File

@@ -644,9 +644,9 @@ void Object::BuildMovementUpdate(ByteBuffer* data, uint16 flags) const
if (GameObject const* go = ToGameObject())
{
if (MapTransport const* transport = go->ToMapTransport())
* data << uint32(transport->GetPathProgress());
if (Transport const* transport = go->ToTransport())
* data << uint32(getMSTime() + transport->GetCurrentTransportTime());
*data << uint32(transport->GetPathProgress());
else if (Transport const* transport = go->ToTransport())
*data << uint32(getMSTime() + transport->GetCurrentTransportTime());
else
*data << uint32(getMSTime());
}