diff --git a/scripts/net/packethandling/PacketBuffer.cs b/scripts/net/packethandling/PacketBuffer.cs index 14096b9..e83380b 100644 --- a/scripts/net/packethandling/PacketBuffer.cs +++ b/scripts/net/packethandling/PacketBuffer.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace Network.PacketHandling { public class PacketBuffer { - private List ByteList; + private List ByteList = new List(); private int ReadCounter = 0; public byte[] ByteBuffer { get { return ByteList.ToArray(); } }