diff --git a/Il2CppInspector.Common/IL2CPP/Il2CppBinary.cs b/Il2CppInspector.Common/IL2CPP/Il2CppBinary.cs index e6de2ad..f07220b 100644 --- a/Il2CppInspector.Common/IL2CPP/Il2CppBinary.cs +++ b/Il2CppInspector.Common/IL2CPP/Il2CppBinary.cs @@ -294,7 +294,7 @@ namespace Il2CppInspector CodeRegistration = Image.ReadMappedObject(codeRegistration); } - if (Image.Version == 29 && CodeRegistration.genericMethodPointersCount > 0x50000) + if (Image.Version == 29 && (long)CodeRegistration.genericMethodPointersCount - MetadataRegistration.genericMethodTableCount > 0x10000) { Image.Version = 29.1; codeRegistration -= 2 * pointerSize;