summaryrefslogtreecommitdiff
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
commitf8dd005ee7bde639060d31eedcef09277acb1498 (patch)
treedc42cb7abebecd3e6e7c3321f00f4b5305706cbe
parent9114f86aa33f2587c3a91946344ec0a3bb916a85 (diff)
Fix PointerLabelToScriptPointer class
used the current address instead of the parsed address original-commit-id: 9fc8d527f727dedfb8dd718cfea9e29d7b26775d
-rw-r--r--crystal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/crystal.py b/crystal.py
index 764f42a..c7b0939 100644
--- a/crystal.py
+++ b/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)