diff --git a/Server/Packets/Outgoing/LoginResponsePacket.cs b/Server/Packets/Outgoing/LoginResponsePacket.cs index db1199a..eb2b471 100644 --- a/Server/Packets/Outgoing/LoginResponsePacket.cs +++ b/Server/Packets/Outgoing/LoginResponsePacket.cs @@ -26,7 +26,7 @@ public class LoginResponsePacket : IPacket public byte[] Serialize() { - var sizeOfServerChannelData = 5; + const int sizeOfServerChannelData = 5; Span dataSpan = stackalloc byte[5 + (this.ChannelData.Length * sizeOfServerChannelData)]; dataSpan.Clear(); dataSpan[0] = (byte)this.ResponseReason;