diff --git a/Il2CppInspector/Reflection/Assembly.cs b/Il2CppInspector/Reflection/Assembly.cs index 4eb9619..e58fefa 100644 --- a/Il2CppInspector/Reflection/Assembly.cs +++ b/Il2CppInspector/Reflection/Assembly.cs @@ -47,8 +47,13 @@ namespace Il2CppInspector.Reflection { Module = Model.Package.Modules[FullName]; // Generate types in DefinedTypes from typeStart to typeStart+typeCount-1 - for (var t = Definition.typeStart; t < Definition.typeStart + Definition.typeCount; t++) - DefinedTypes.Add(new TypeInfo(Model.Package, t, this)); + for (var t = Definition.typeStart; t < Definition.typeStart + Definition.typeCount; t++) { + var type = new TypeInfo(Model.Package, t, this); + + // Don't add empty module definitions + if (type.Name != "") + DefinedTypes.Add(type); + } } public override string ToString() => FullName;