Fix NRE in Assembly ctor on < v24.2

This commit is contained in:
LukeFZ
2024-11-09 15:44:11 +01:00
parent 3982e5fd99
commit bcbf4f47e2

View File

@@ -71,7 +71,8 @@ namespace Il2CppInspector.Reflection {
// TODO: Generate EntryPoint method from entryPointIndex // TODO: Generate EntryPoint method from entryPointIndex
} }
// Find corresponding module (we'll need this for method pointers) // Find corresponding module (we'll need this for method pointers on V24.2+)
if (Model.Package.Modules != null)
ModuleDefinition = Model.Package.Modules[ShortName]; ModuleDefinition = Model.Package.Modules[ShortName];
// Generate types in DefinedTypes from typeStart to typeStart+typeCount-1 // Generate types in DefinedTypes from typeStart to typeStart+typeCount-1