summaryrefslogtreecommitdiff
path: root/extras/crystal.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-05-23 17:39:30 -0500
committerBryan Bishop <kanzure@gmail.com>2012-05-23 17:39:30 -0500
commit1663472cf61e999168c2ba2a4b5f55de56c95c91 (patch)
tree77fecdb3a9c53cc54bfaa632c0b09fc4a6700994 /extras/crystal.py
parent0c778f2930d91dbfde77b75c0147240c713a5085 (diff)
quick fix for PokedexText
Diffstat (limited to 'extras/crystal.py')
-rw-r--r--extras/crystal.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/extras/crystal.py b/extras/crystal.py
index b0b95b261..ec1084dc9 100644
--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -2324,6 +2324,10 @@ class MainText(TextCommand):
def parse(self):
offset = self.address
+ # the code below assumes we're jumping past a $0 byte
+ if use_zero == False:
+ offset = offset - 1
+
# read until $50, $57 or $58 (not sure about $58...)
jump57 = how_many_until(chr(0x57), offset)
jump50 = how_many_until(chr(0x50), offset)