Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Sep 9, 2022
1 parent 50a0921 commit 98d0c45
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,13 @@ protected void FixType (TypeDefinition type, TypeDefinition localDesigner)

protected void RemoveFieldsFromType (TypeDefinition type, ModuleDefinition module)
{
List<FieldDefinition> fields = new List<FieldDefinition> ();
for (int i= type.Fields.Count -1; i >= 0; i--) {
for (int i = type.Fields.Count - 1; i >= 0; i--) {
var field = type.Fields [i];
if (field.FieldType.IsArray) {
continue;
}
LogMessage ($"Removing {type.Name}::{field.Name}");
fields.RemoveAt (i);
type.Fields.RemoveAt (i);
}
}

Expand Down

0 comments on commit 98d0c45

Please sign in to comment.