IL2CPP: Don't crash on assemblies with zero attributes (issue #19)
This commit is contained in:
@@ -226,7 +226,8 @@ namespace Il2CppInspector
|
||||
var token = AttributeTypeRanges[index].token;
|
||||
attsByToken.Add(token, index);
|
||||
}
|
||||
AttributeIndicesByToken.Add(image.customAttributeStart, attsByToken);
|
||||
if (image.customAttributeCount > 0)
|
||||
AttributeIndicesByToken.Add(image.customAttributeStart, attsByToken);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user