shithub: pokecrystal

Download patch

ref: 4462b9b2461c1bec27b88b872bda08a0972228c4
parent: 14903375a1543062d1e6dc4ec30dffe3848d733d
author: Bryan Bishop <[email protected]>
date: Thu Mar 22 21:26:02 EDT 2012

calculate_pointer_from_bytes_at update suggested by sankina

--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -498,6 +498,8 @@
     byte1 = ord(rom[address])
     byte2 = ord(rom[address+1])
     temp  = byte1 + (byte2 << 8)
+    if temp == 0:
+        return None
     return calculate_pointer(temp, bank)
 
 def clean_up_long_info(long_info):