Fixed writebyte issue with BitWriter
This commit is contained in:
parent
df109debf4
commit
90c5a86fb0
@ -232,6 +232,7 @@ namespace MLAPI.NetworkingManagerComponents.Binary
|
|||||||
if (t is byte)
|
if (t is byte)
|
||||||
{
|
{
|
||||||
WriteByte(writeTo, t as byte? ?? 0, bitOffset, isAligned);
|
WriteByte(writeTo, t as byte? ?? 0, bitOffset, isAligned);
|
||||||
|
bitOffset += 8;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (t is ushort) value = t as ushort? ?? 0;
|
else if (t is ushort) value = t as ushort? ?? 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user