mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-01-23 09:16:20 -08: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"]
|
return thing["label"]
|
||||||
|
|
||||||
#the new way
|
#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"):
|
if hasattr(obj, "label"):
|
||||||
return getattr(obj, "label")
|
return obj.label.name
|
||||||
else:
|
else:
|
||||||
return "AlreadyParsedNoDefaultUnknownLabel_" + hex(address)
|
return "AlreadyParsedNoDefaultUnknownLabel_" + hex(address)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user