Skip to content

Commit f4e8b0d

Browse files
committed
fix: Fixed serialization problem in last versions binary
1 parent 553edc4 commit f4e8b0d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

MLAPI/Serialization/BitWriter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public void SetStream(Stream stream)
4747
/// <param name="value">The object to write</param>
4848
public void WriteObjectPacked(object value)
4949
{
50+
// Check unitys custom null checks
5051
bool isNull = value == null || (value is UnityEngine.Object && ((UnityEngine.Object)value) == null);
5152

5253
if (isNull || value.GetType().IsNullable())

0 commit comments

Comments
 (0)