Skip to content

Commit 7a41865

Browse files
committed
Fixed CanRead property in BitStream
1 parent 2d2ef26 commit 7a41865

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MLAPI/NetworkingManagerComponents/Binary/BitStream.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public BitStream(byte[] target)
8080
/// <summary>
8181
/// Whether or not data can be read from the stream.
8282
/// </summary>
83-
public override bool CanRead => Position < target.LongLength;
83+
public override bool CanRead => Position < Length;
8484

8585
/// <summary>
8686
/// Whether or not seeking is supported by this stream. (Always true)

0 commit comments

Comments
 (0)