DLL: Don't try to add property tokens if there is no definition
This commit is contained in:
@@ -253,6 +253,8 @@ namespace Il2CppInspector.Outputs
|
||||
mProp.SetMethod = AddMethod(module, mType, prop.SetMethod);
|
||||
|
||||
// Add token attribute
|
||||
// Generic properties and constructed properties (from disperate get/set methods) have no definition
|
||||
if (prop.Definition != null)
|
||||
mProp.AddAttribute(module, tokenAttribute, ("Token", $"0x{prop.Definition.token:X8}"));
|
||||
|
||||
// Add custom attribute attributes
|
||||
|
||||
Reference in New Issue
Block a user