From b0a1ce3df7febfb1858c0e0e7094ef26be157333 Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Thu, 28 Nov 2019 04:08:58 +0100 Subject: [PATCH] Fix end method pointers being incorrect when compiler aggregates multiple methods to same start address --- Il2CppInspector/Il2CppInspector.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Il2CppInspector/Il2CppInspector.cs b/Il2CppInspector/Il2CppInspector.cs index 0915d5a..2b4d11b 100644 --- a/Il2CppInspector/Il2CppInspector.cs +++ b/Il2CppInspector/Il2CppInspector.cs @@ -159,7 +159,7 @@ namespace Il2CppInspector // Get sorted list of method pointers var sortedMethodPointers = (Version <= 24.1)? Binary.GlobalMethodPointers.OrderBy(m => m).ToList() : - Binary.ModuleMethodPointers.SelectMany(module => module.Value).OrderBy(m => m).ToList(); + Binary.ModuleMethodPointers.SelectMany(module => module.Value).OrderBy(m => m).Distinct().ToList(); // Guestimate method end addresses methodPointers = new Dictionary(sortedMethodPointers.Count);