From 02a41eccf072111256d82fbd1ed9fa8da04c7a6b Mon Sep 17 00:00:00 2001 From: Luke <17146677+LukeFZ@users.noreply.github.com> Date: Wed, 11 Feb 2026 14:08:56 +0100 Subject: [PATCH] Fix typeindex size calculation using the wrong max size --- Il2CppInspector.Common/IL2CPP/Metadata.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Il2CppInspector.Common/IL2CPP/Metadata.cs b/Il2CppInspector.Common/IL2CPP/Metadata.cs index a53d002..04d30cd 100644 --- a/Il2CppInspector.Common/IL2CPP/Metadata.cs +++ b/Il2CppInspector.Common/IL2CPP/Metadata.cs @@ -135,7 +135,7 @@ namespace Il2CppInspector // thankfully, we can just guess the size based off the three available options and the known total size of // a type entry that uses TypeIndex. var actualSize = Header.InterfaceOffsets.SectionSize / Header.InterfaceOffsets.Count; - var maxSize = Il2CppEventDefinition.Size(tempVersion); + var maxSize = Il2CppInterfaceOffsetPair.Size(tempVersion); int typeIndexSize; if (actualSize == maxSize) @@ -437,3 +437,4 @@ namespace Il2CppInspector public int Sizeof() where T : IReadable => T.Size(Version, Is32Bit); } } +