diff --git a/Assets/Mirror/Editor/Weaver/Readers.cs b/Assets/Mirror/Editor/Weaver/Readers.cs index 7b2692248..e9eecc97a 100644 --- a/Assets/Mirror/Editor/Weaver/Readers.cs +++ b/Assets/Mirror/Editor/Weaver/Readers.cs @@ -122,8 +122,11 @@ static MethodDefinition GenerateArrayReadFunc(TypeReference variable) } + // int lengh readerFunc.Body.Variables.Add(new VariableDefinition(WeaverTypes.Import())); + // T[] array readerFunc.Body.Variables.Add(new VariableDefinition(variable)); + // int i; readerFunc.Body.Variables.Add(new VariableDefinition(WeaverTypes.Import())); ILProcessor worker = readerFunc.Body.GetILProcessor();