diff --git a/Il2CppInspector.Common/IL2CPP/Il2CppInspector.cs b/Il2CppInspector.Common/IL2CPP/Il2CppInspector.cs index 024063c..6708cd3 100644 --- a/Il2CppInspector.Common/IL2CPP/Il2CppInspector.cs +++ b/Il2CppInspector.Common/IL2CPP/Il2CppInspector.cs @@ -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); } }