summaryrefslogtreecommitdiff
path: root/extras/crystal.py
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2013-04-30 20:27:13 -0400
committeryenatch <yenatch@gmail.com>2013-04-30 20:29:15 -0400
commit9fc8d527f727dedfb8dd718cfea9e29d7b26775d (patch)
tree1716ab694f261e1cfe6354a050d87ce9feb57d7e /extras/crystal.py
parent45343b07c7658040fda01f8eb2b7eb93f1efcda6 (diff)
Fix PointerLabelToScriptPointer class
used the current address instead of the parsed address
Diffstat (limited to 'extras/crystal.py')
-rw-r--r--extras/crystal.py2
1 files changed, 1 insertions, 1 deletions
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)