From e4d0e3b7380229e43adb2481bb0bed1f664f8284 Mon Sep 17 00:00:00 2001 From: jonschz Date: Sun, 2 Mar 2025 20:13:18 +0100 Subject: [PATCH] Fix crash triggered by running on an outdated pdb --- reccmp/isledecomp/compare/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reccmp/isledecomp/compare/core.py b/reccmp/isledecomp/compare/core.py index 05a0e358..ea2d61d4 100644 --- a/reccmp/isledecomp/compare/core.py +++ b/reccmp/isledecomp/compare/core.py @@ -588,7 +588,7 @@ def _match_thunks(self): # Now match the thunks from orig where we can. for orig_thunk, orig_addr in self.orig_bin.thunks: orig_func = self._db.get_by_orig(orig_addr) - if orig_func is None: + if orig_func is None or orig_func.recomp_addr is None: continue # Check whether the thunk destination is a matched symbol