diff --git a/Il2CppInterop.Generator/Passes/Pass50GenerateMethods.cs b/Il2CppInterop.Generator/Passes/Pass50GenerateMethods.cs index 38d09455..54af00cc 100644 --- a/Il2CppInterop.Generator/Passes/Pass50GenerateMethods.cs +++ b/Il2CppInterop.Generator/Passes/Pass50GenerateMethods.cs @@ -66,7 +66,7 @@ public static void DoPass(RewriteGlobalContext context) if (nextInstruction != null) bodyBuilder.Append(nextInstruction); - if (!originalMethod.DeclaringType.IsValueType) + if (typeContext.ComputedTypeSpecifics != TypeRewriteContext.TypeSpecifics.BlittableStruct) { if (originalMethod.IsConstructor) {