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