From 9fc8d527f727dedfb8dd718cfea9e29d7b26775d Mon Sep 17 00:00:00 2001 From: yenatch Date: Tue, 30 Apr 2013 20:27:13 -0400 Subject: [PATCH] Fix PointerLabelToScriptPointer class used the current address instead of the parsed address --- extras/crystal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/crystal.py b/extras/crystal.py index 764f42a1e..c7b09397e 100644 --- a/extras/crystal.py +++ b/extras/crystal.py @@ -1471,7 +1471,7 @@ ScriptPointerLabelAfterBank.parse = _parse_script_pointer_bytes class PointerLabelToScriptPointer(PointerLabelParam): def parse(self): PointerLabelParam.parse(self) - address = calculate_pointer_from_bytes_at(self.address, bank=self.bank) + address = calculate_pointer_from_bytes_at(self.parsed_address, bank=self.bank) address2 = calculate_pointer_from_bytes_at(address, bank="reverse") # maybe not "reverse"? self.script = parse_script_engine_script_at(address2, origin=False, map_group=self.map_group, map_id=self.map_id, force=self.force, debug=self.debug)