diff --git a/Assets/Mirage/Weaver/Mirage.CecilExtensions/Extensions/Extensions.cs b/Assets/Mirage/Weaver/Mirage.CecilExtensions/Extensions/Extensions.cs index 0b140c9422..596d712c32 100644 --- a/Assets/Mirage/Weaver/Mirage.CecilExtensions/Extensions/Extensions.cs +++ b/Assets/Mirage/Weaver/Mirage.CecilExtensions/Extensions/Extensions.cs @@ -303,20 +303,20 @@ public static T GetField(this CustomAttribute ca, string field, T defaultValu } /// - /// Imports a field and makes it a member of its orignal type. - /// This is needed if orignal type is a generic instance, this will ensure that it stays a member of that instance, eg MyMessage{int}.Value + /// Imports a field and makes it a member of its original type. + /// This is needed if original type is a generic instance, this will ensure that it stays a member of that instance, eg MyMessage{int}.Value /// /// /// - /// Type that the field orignal belonged to, NOT the resolved type + /// Type that the field original belonged to, NOT the resolved type /// - public static FieldReference ImportField(this ModuleDefinition module, FieldDefinition field, TypeReference orignalType) + public static FieldReference ImportField(this ModuleDefinition module, FieldDefinition field, TypeReference originalType) { - if (orignalType.Module != module) - orignalType = module.ImportReference(orignalType); + if (originalType.Module != module) + originalType = module.ImportReference(originalType); var fieldType = module.ImportReference(field.FieldType); - return new FieldReference(field.Name, fieldType, orignalType); + return new FieldReference(field.Name, fieldType, originalType); } ///