mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
only recalculate a PointerLabelParam parsed_address if necessary
This commit is contained in:
parent
9ea77b0ad8
commit
7244cb256e
@ -1466,7 +1466,11 @@ class PointerLabelParam(MultiByteParam):
|
||||
bank = self.bank
|
||||
#we pass bank= for whether or not to include a bank byte when reading
|
||||
#.. it's not related to caddress
|
||||
caddress = None
|
||||
if not (hasattr(self, "parsed_address") and self.parsed_address != None):
|
||||
caddress = calculate_pointer_from_bytes_at(self.address, bank=self.bank)
|
||||
else:
|
||||
caddress = self.parsed_address
|
||||
label = get_label_for(caddress)
|
||||
pointer_part = label #use the label, if it is found
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user