0
0
Fork 0
mirror of https://github.com/Sanae6/SmoOnlineServer.git synced 2024-11-21 18:55:17 +00:00

Fix game packet size

This commit is contained in:
Sanae 2022-04-27 14:20:01 -06:00
parent 605be3947f
commit 88f61f9e79

View file

@ -12,7 +12,7 @@ public struct GamePacket : IPacket {
public GamePacket() { } public GamePacket() { }
public short Size => 0x3C; public short Size => 0x3A;
public void Serialize(Span<byte> data) { public void Serialize(Span<byte> data) {
MemoryMarshal.Write(data, ref Is2d); MemoryMarshal.Write(data, ref Is2d);
MemoryMarshal.Write(data[1..], ref ScenarioNum); MemoryMarshal.Write(data[1..], ref ScenarioNum);