From fca81a4894a0012f3d621ab571c345f840ea74cd Mon Sep 17 00:00:00 2001 From: Sanae Date: Mon, 14 Feb 2022 16:07:42 -0600 Subject: [PATCH] im stupid --- Server/Server.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/Server.cs b/Server/Server.cs index 6b1a46a..5490ce3 100644 --- a/Server/Server.cs +++ b/Server/Server.cs @@ -46,7 +46,7 @@ public class Server { Span data = memory.Span; MemoryMarshal.Write(data, ref header); - MemoryMarshal.Write(data[Constants.HeaderSize..], ref packet); + packet.Serialize(data[Constants.HeaderSize..]); } // broadcast packets to all clients