mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
remove unnecessary unsafe keyword
This commit is contained in:
parent
dde8cc48f3
commit
76fe9759c6
@ -110,7 +110,7 @@ internal unsafe T ReadBlittable<T>()
|
||||
|
||||
// blittable'?' template for code reuse
|
||||
// note: bool isn't blittable. need to read as byte.
|
||||
internal unsafe T? ReadBlittableNullable<T>()
|
||||
internal T? ReadBlittableNullable<T>()
|
||||
where T : unmanaged =>
|
||||
ReadByte() != 0 ? ReadBlittable<T>() : default(T?);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user