diff --git a/GServer.Common/Networking/Messages/Client/AuthResponseMessage.cs b/GServer.Common/Networking/Messages/Client/AuthResponseMessage.cs index 3d4668d..60fb5b6 100644 --- a/GServer.Common/Networking/Messages/Client/AuthResponseMessage.cs +++ b/GServer.Common/Networking/Messages/Client/AuthResponseMessage.cs @@ -56,7 +56,7 @@ public class AuthResponseMessage : BaseMessage, IMessage if (IsSuccessful) { short sessionTokenByteLen = (short)Encoding.UTF8.GetByteCount(SessionToken!); - stream.WriteUInt16(sessionTokenByteLen); + stream.WriteInt16(sessionTokenByteLen); stream.WriteUtf8String(SessionToken!); } else