From b0a82f1dd0d6b369c57948e8d1a007733695b623 Mon Sep 17 00:00:00 2001 From: LukeFZ <17146677+LukeFZ@users.noreply.github.com> Date: Fri, 19 Dec 2025 13:01:23 +0100 Subject: [PATCH] fix incorrect bit indices for IsByRefLike and HasInlineArray in Il2CppTypeDefinitionBitfield --- .../Next/Metadata/Il2CppTypeDefinitionBitfield.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Il2CppInspector.Common/Next/Metadata/Il2CppTypeDefinitionBitfield.cs b/Il2CppInspector.Common/Next/Metadata/Il2CppTypeDefinitionBitfield.cs index 8dde963..f58a473 100644 --- a/Il2CppInspector.Common/Next/Metadata/Il2CppTypeDefinitionBitfield.cs +++ b/Il2CppInspector.Common/Next/Metadata/Il2CppTypeDefinitionBitfield.cs @@ -17,6 +17,6 @@ public partial record struct Il2CppTypeDefinitionBitfield public bool DefaultPackingSize => ((_value >> 10) & 1) == 1; public bool DefaultClassSize => ((_value >> 11) & 1) == 1; public PackingSize ClassSize => (PackingSize)((_value >> 12) & 0b1111); - public bool IsByRefLike => ((_value >> 13) & 1) == 1; - public bool HasInlineArray => ((_value >> 14) & 1) == 1; + public bool IsByRefLike => ((_value >> 16) & 1) == 1; + public bool HasInlineArray => ((_value >> 17) & 1) == 1; } \ No newline at end of file