mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
calculate_pointer_from_bytes_at update suggested by sankina
This commit is contained in:
parent
14903375a1
commit
4462b9b246
@ -498,6 +498,8 @@ def calculate_pointer_from_bytes_at(address, bank=False):
|
|||||||
byte1 = ord(rom[address])
|
byte1 = ord(rom[address])
|
||||||
byte2 = ord(rom[address+1])
|
byte2 = ord(rom[address+1])
|
||||||
temp = byte1 + (byte2 << 8)
|
temp = byte1 + (byte2 << 8)
|
||||||
|
if temp == 0:
|
||||||
|
return None
|
||||||
return calculate_pointer(temp, bank)
|
return calculate_pointer(temp, bank)
|
||||||
|
|
||||||
def clean_up_long_info(long_info):
|
def clean_up_long_info(long_info):
|
||||||
|
Loading…
Reference in New Issue
Block a user