From bbe4ac8c19580b27a8431e9c7259a220fdae8001 Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Sun, 11 Aug 2019 12:56:39 -0700 Subject: [PATCH] Use explicit type --- Assets/Mirror/Runtime/NetworkIdentity.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {