Model: Make assembly definitions available

This commit is contained in:
Katy Coe
2019-11-11 01:37:51 +01:00
parent e923a51fc0
commit 734e88a07b
5 changed files with 18 additions and 11 deletions

View File

@@ -61,7 +61,7 @@ namespace Il2CppInspector.Reflection
Name = pkg.Strings[Definition.nameIndex];
// Find method pointer
VirtualAddress = pkg.GetMethodPointer(Assembly.Module, Definition);
VirtualAddress = pkg.GetMethodPointer(Assembly.ModuleDefinition, Definition);
// Add to global method definition list
Assembly.Model.MethodsByDefinitionIndex[Index] = this;