diff --git a/Assets/Mirror/Runtime/NetworkIdentity.cs b/Assets/Mirror/Runtime/NetworkIdentity.cs index 2f0f67425..c4c38600f 100644 --- a/Assets/Mirror/Runtime/NetworkIdentity.cs +++ b/Assets/Mirror/Runtime/NetworkIdentity.cs @@ -762,7 +762,7 @@ internal void OnDeserializeAllSafely(NetworkReader reader, bool initialState) // read component dirty mask ulong dirtyComponentsMask = reader.ReadPackedUInt64(); - var components = NetworkBehaviours; + NetworkBehaviour[] components = NetworkBehaviours; // loop through all components and deserialize the dirty ones for (int i = 0; i < components.Length; ++i) {