You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
gfx: safer alternating-byte detection in compression
This commit is contained in:
@@ -467,7 +467,7 @@ class Compressed:
|
|||||||
num_alts = 0
|
num_alts = 0
|
||||||
|
|
||||||
# make sure we don't check for alts at the end of the file
|
# make sure we don't check for alts at the end of the file
|
||||||
if self.address+2 >= self.end: return False
|
if self.address+3 >= self.end: return False
|
||||||
|
|
||||||
self.alts.append(self.byte)
|
self.alts.append(self.byte)
|
||||||
self.alts.append(ord(self.image[self.address+1]))
|
self.alts.append(ord(self.image[self.address+1]))
|
||||||
|
Reference in New Issue
Block a user