Skip to content

Commit

Permalink
Fix constructors in non-blittable structs (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
js6pak authored Feb 15, 2023
1 parent e28b791 commit 6f158b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Il2CppInterop.Generator/Passes/Pass50GenerateMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 6f158b8

Please sign in to comment.