mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
Core/Transports: fixed a typo that was causing client crashes uppon relogging outside of instances
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user