Skip to content

Commit

Permalink
Fix construction of GenericParameterSignature
Browse files Browse the repository at this point in the history
  • Loading branch information
ds5678 authored and gompoc committed Dec 24, 2024
1 parent a571fcb commit c15bf9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cpp2IL.Core/Utils/AsmResolver/ContextToTypeSignature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static TypeSignature ToTypeSignature(this GenericInstanceTypeAnalysisCont

public static TypeSignature ToTypeSignature(this GenericParameterTypeAnalysisContext context, ModuleDefinition parentModule)
{
return new GenericParameterSignature(context.Type == Il2CppTypeEnum.IL2CPP_TYPE_VAR ? GenericParameterType.Type : GenericParameterType.Method, context.Index);
return new GenericParameterSignature(parentModule, context.Type == Il2CppTypeEnum.IL2CPP_TYPE_VAR ? GenericParameterType.Type : GenericParameterType.Method, context.Index);
}

public static TypeSignature ToTypeSignature(this WrappedTypeAnalysisContext context, ModuleDefinition parentModule) => context switch
Expand Down

0 comments on commit c15bf9a

Please sign in to comment.