mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkReader should enforce read only (#580)
This commit is contained in:
parent
4aa1a4b169
commit
092c5663b6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user