mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-01-23 09:16:20 -08:00
gfx: safer alternating-byte detection in compression
This commit is contained in:
parent
b5e0efc118
commit
e3565bd700
@ -467,7 +467,7 @@ class Compressed:
|
||||
num_alts = 0
|
||||
|
||||
# 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(ord(self.image[self.address+1]))
|
||||
|
Loading…
x
Reference in New Issue
Block a user