Skip to content

Commit 90c5a86

Browse files
committed
Fixed writebyte issue with BitWriter
1 parent df109de commit 90c5a86

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

MLAPI/NetworkingManagerComponents/Binary/BitWriter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ private static void Serialize<T>(T t, byte[] writeTo, ref long bitOffset, ref bo
232232
if (t is byte)
233233
{
234234
WriteByte(writeTo, t as byte? ?? 0, bitOffset, isAligned);
235+
bitOffset += 8;
235236
return;
236237
}
237238
else if (t is ushort) value = t as ushort? ?? 0;

0 commit comments

Comments
 (0)