Skip to content

Commit c631c29

Browse files
fix
Fixing issue where the AnticipatedNetworkVariable previous value was not being properly set on non-authority instances.
1 parent 94160ec commit c631c29

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,9 @@ public override void ReadField(FastBufferReader reader)
387387
public override void ReadDelta(FastBufferReader reader, bool keepDirtyDelta)
388388
{
389389
m_AuthoritativeValue.ReadDelta(reader, keepDirtyDelta);
390+
// Assure that the post delta read is invoked in order to update
391+
// previous value.
392+
m_AuthoritativeValue.PostDeltaRead();
390393
}
391394
}
392395
}

0 commit comments

Comments
 (0)