diff --git a/Il2CppInspector.Common/Reflection/Il2CppModel.cs b/Il2CppInspector.Common/Reflection/Il2CppModel.cs index 68d36dd..c1e6e7d 100644 --- a/Il2CppInspector.Common/Reflection/Il2CppModel.cs +++ b/Il2CppInspector.Common/Reflection/Il2CppModel.cs @@ -141,7 +141,6 @@ namespace Il2CppInspector.Reflection } // Get generic arguments from either a type or method instanceIndex from a MethodSpec - public List ResolveGenericArguments(int instanceIndex) => ResolveGenericArguments(Package.GenericInstances[instanceIndex]); public List ResolveGenericArguments(Il2CppGenericInst inst) { // Get list of pointers to type parameters (both unresolved and concrete) diff --git a/Il2CppInspector.Common/Reflection/MethodBase.cs b/Il2CppInspector.Common/Reflection/MethodBase.cs index 3d330a9..23b1e36 100644 --- a/Il2CppInspector.Common/Reflection/MethodBase.cs +++ b/Il2CppInspector.Common/Reflection/MethodBase.cs @@ -153,7 +153,7 @@ namespace Il2CppInspector.Reflection Attributes = methodDef.Attributes; IsGenericMethod = true; - genericArguments = model.ResolveGenericArguments(spec.methodIndexIndex); + genericArguments = model.ResolveGenericArguments(model.Package.GenericInstances[spec.methodIndexIndex]); // Substitute matching generic type parameters with concrete type arguments foreach (var p in methodDef.DeclaredParameters) {