gfx: safer alternating-byte detection in compression

original-commit-id: e3565bd7007b194b04ceecaf1909fff65062211f
This commit is contained in:
yenatch
2013-05-18 03:26:06 -04:00
parent e4cf93bff1
commit 829fa1d626

2
gfx.py
View File

@@ -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]))