From 70048fc380d7d89a5446ab839b3090e8271f5329 Mon Sep 17 00:00:00 2001 From: vis2k Date: Tue, 15 Jan 2019 15:44:20 +0100 Subject: [PATCH] Use actual types instead of var because it's not obvious --- Assets/Mirror/Weaver/Processors/NetworkBehaviourProcessor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Mirror/Weaver/Processors/NetworkBehaviourProcessor.cs b/Assets/Mirror/Weaver/Processors/NetworkBehaviourProcessor.cs index 3d1915d05..552ef353c 100644 --- a/Assets/Mirror/Weaver/Processors/NetworkBehaviourProcessor.cs +++ b/Assets/Mirror/Weaver/Processors/NetworkBehaviourProcessor.cs @@ -450,7 +450,7 @@ void GenerateDeSerialization() { Weaver.DLog(m_td, " GenerateDeSerialization"); - foreach (var m in m_td.Methods) + foreach (MethodDefinition m in m_td.Methods) { if (m.Name == "OnDeserialize") return; @@ -487,7 +487,7 @@ void GenerateDeSerialization() serWorker.Append(serWorker.Create(OpCodes.Brfalse, initialStateLabel)); int netIdFieldCounter = 0; - foreach (var syncVar in m_SyncVars) + foreach (FieldDefinition syncVar in m_SyncVars) { // assign value serWorker.Append(serWorker.Create(OpCodes.Ldarg_0));