summaryrefslogtreecommitdiff
path: root/crystal.py
diff options
context:
space:
mode:
Diffstat (limited to 'crystal.py')
-rw-r--r--crystal.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/crystal.py b/crystal.py
index 4458ee9..28b68b7 100644
--- a/crystal.py
+++ b/crystal.py
@@ -1517,6 +1517,7 @@ class RawTextPointerLabelParam(PointerLabelParam):
class TextPointerLabelParam(PointerLabelParam):
"""this is a pointer to a text script"""
bank = False
+ text = None
def parse(self):
PointerLabelParam.parse(self)
address = calculate_pointer_from_bytes_at(self.address, bank=self.bank)
@@ -1524,8 +1525,11 @@ class TextPointerLabelParam(PointerLabelParam):
self.text = parse_text_engine_script_at(address, map_group=self.map_group, map_id=self.map_id, force=self.force, debug=self.debug)
def get_dependencies(self, recompute=False, global_dependencies=set()):
- global_dependencies.add(self.text)
- return [self.text]
+ if self.text:
+ global_dependencies.add(self.text)
+ return [self.text]
+ else:
+ return []
class MovementPointerLabelParam(PointerLabelParam):
pass