Fixed writebyte issue with BitWriter

This commit is contained in:
Albin Corén 2018-04-17 21:29:52 +02:00
parent df109debf4
commit 90c5a86fb0

@ -232,6 +232,7 @@ namespace MLAPI.NetworkingManagerComponents.Binary
if (t is byte)
{
WriteByte(writeTo, t as byte? ?? 0, bitOffset, isAligned);
bitOffset += 8;
return;
}
else if (t is ushort) value = t as ushort? ?? 0;