Skip to content

Commit 0fbe3e9

Browse files
committed
fix: Fixed SyncedVars being updated when not dirty
Fixes: #346
1 parent f6afc72 commit 0fbe3e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MLAPI/NetworkedVar/SyncedVarContainer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ internal bool IsDirty()
2222
object newValue = field.GetValue(fieldInstance);
2323
object oldValue = value;
2424

25-
if (newValue != oldValue || isDirty)
25+
if (!Equals(newValue, oldValue) || isDirty)
2626
{
2727
isDirty = true;
2828

0 commit comments

Comments
 (0)