You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
fix label lookup
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user