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));