fix: #3354 SyncList callback for OP_SET index parameter fixed

This commit is contained in:
vis2k 2023-01-12 00:44:18 +01:00
parent 3e8880db1c
commit e16e55616b

View File

@ -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;
}