Skip to content

Commit 5862d9d

Browse files
fix
Fixing AnticipatedNetworkVariable issue where the previous value was not being updated for non-authority/write permission instances.
1 parent 711aa02 commit 5862d9d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

com.unity.netcode.gameobjects/Runtime/NetworkVariable/AnticipatedNetworkVariable.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ public override void ReadField(FastBufferReader reader)
387387
public override void ReadDelta(FastBufferReader reader, bool keepDirtyDelta)
388388
{
389389
m_AuthoritativeValue.ReadDelta(reader, keepDirtyDelta);
390+
m_AuthoritativeValue.PostDeltaRead();
390391
}
391392
}
392393
}

0 commit comments

Comments
 (0)