From e16e55616b0b5027350a494d49d4f48b9500586b Mon Sep 17 00:00:00 2001 From: vis2k Date: Thu, 12 Jan 2023 00:44:18 +0100 Subject: [PATCH] fix: #3354 SyncList callback for OP_SET index parameter fixed --- Assets/Mirror/Core/SyncList.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Mirror/Core/SyncList.cs b/Assets/Mirror/Core/SyncList.cs index f9fabd53f..8b70eed22 100644 --- a/Assets/Mirror/Core/SyncList.cs +++ b/Assets/Mirror/Core/SyncList.cs @@ -243,7 +243,7 @@ public override void OnDeserializeDelta(NetworkReader reader) // ClientToServer needs to set dirty in server OnDeserialize. // no access check: server OnDeserialize can always // write, even for ClientToServer (for broadcasting). - AddOperation(Operation.OP_SET, i, oldItem, newItem, false); + AddOperation(Operation.OP_SET, index, oldItem, newItem, false); } break; }