ensure reader is only initialized once

This commit is contained in:
Paul Pacheco 2018-10-11 20:12:01 -05:00
parent 71ea8291d4
commit b57bbf4ec7

View File

@ -6,7 +6,7 @@ namespace Mirror
{ {
public class NetworkReader public class NetworkReader
{ {
BinaryReader reader; readonly BinaryReader reader;
public NetworkReader(byte[] buffer) public NetworkReader(byte[] buffer)
{ {