diff --git a/OpenRA.Server/Server.cs b/OpenRA.Server/Server.cs index a3324d645d..188f415568 100644 --- a/OpenRA.Server/Server.cs +++ b/OpenRA.Server/Server.cs @@ -92,8 +92,8 @@ namespace OpenRA.Server { case ReceiveState.Header: { - conn.ExpectLength = BitConverter.ToInt32(bytes, 4) - 4; - conn.Frame = BitConverter.ToInt32(bytes, 0); + conn.ExpectLength = BitConverter.ToInt32(bytes, 0) - 4; + conn.Frame = BitConverter.ToInt32(bytes, 4); conn.State = ReceiveState.Data; } break;