summaryrefslogtreecommitdiff
path: root/crystal.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-04-27 15:33:37 -0500
committerBryan Bishop <kanzure@gmail.com>2012-04-27 15:33:37 -0500
commit322442b3d66e2dd126a59ff7dd2419441ef677eb (patch)
tree6a87e9d166fd5613e71434a4de7d9e03c35b95f3 /crystal.py
parenta7d0c2286036f7975e922a17a1d6bfd6922805ac (diff)
fix label lookup
original-commit-id: d319aea119145ecb03cc28f5877c2d9393944965
Diffstat (limited to 'crystal.py')
-rw-r--r--crystal.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/crystal.py b/crystal.py
index 26377b0..71b33ce 100644
--- a/crystal.py
+++ b/crystal.py
@@ -4988,10 +4988,10 @@ def get_label_for(address):
return thing["label"]
#the new way
- if is_script_already_parsed_at(address):
- obj = script_parse_table[address]
+ obj = script_parse_table[address]
+ if obj:
if hasattr(obj, "label"):
- return getattr(obj, "label")
+ return obj.label.name
else:
return "AlreadyParsedNoDefaultUnknownLabel_" + hex(address)