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