mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
fix label lookup
This commit is contained in:
parent
9ed1a474d0
commit
d319aea119
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user