diff --git a/Assets/Mirror/Runtime/NetworkReader.cs b/Assets/Mirror/Runtime/NetworkReader.cs index 822914972..203ff7f7f 100644 --- a/Assets/Mirror/Runtime/NetworkReader.cs +++ b/Assets/Mirror/Runtime/NetworkReader.cs @@ -10,7 +10,7 @@ public class NetworkReader public NetworkReader(byte[] buffer) { - reader = new BinaryReader(new MemoryStream(buffer)); + reader = new BinaryReader(new MemoryStream(buffer, false)); } // 'int' is the best type for .Position. 'short' is too small if we send >32kb which would result in negative .Position