mirror of
https://github.com/pret/pokecrystal.git
synced 2026-06-02 22:09:51 -05: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