diff --git a/Assets/Mirror/Runtime/NetworkReader.cs b/Assets/Mirror/Runtime/NetworkReader.cs index eeb28864f..5d72c2afb 100644 --- a/Assets/Mirror/Runtime/NetworkReader.cs +++ b/Assets/Mirror/Runtime/NetworkReader.cs @@ -110,7 +110,7 @@ internal unsafe T ReadBlittable() // blittable'?' template for code reuse // note: bool isn't blittable. need to read as byte. - internal unsafe T? ReadBlittableNullable() + internal T? ReadBlittableNullable() where T : unmanaged => ReadByte() != 0 ? ReadBlittable() : default(T?);