mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-08-24 11:14:10 -05:00
fix label lookup
original-commit-id: d319aea119145ecb03cc28f5877c2d9393944965
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user