diff options
author | Nicola Mettifogo | 2007-02-04 12:14:11 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-02-04 12:14:11 +0000 |
commit | 5007d82ec7b771579df86c050eba75caddd3931f (patch) | |
tree | 331600aeef7968cee136d8ad7fc9349eeb415511 /engines/parallaction | |
parent | 9832736f9a8f66cfc67c2b26ec6cca4a442b210a (diff) | |
download | scummvm-rg350-5007d82ec7b771579df86c050eba75caddd3931f.tar.gz scummvm-rg350-5007d82ec7b771579df86c050eba75caddd3931f.tar.bz2 scummvm-rg350-5007d82ec7b771579df86c050eba75caddd3931f.zip |
solved array out of bound issue in quickFadePalette
svn-id: r25380
Diffstat (limited to 'engines/parallaction')
-rw-r--r-- | engines/parallaction/graphics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/parallaction/graphics.cpp b/engines/parallaction/graphics.cpp index fabc2b72e6..6a56c74df6 100644 --- a/engines/parallaction/graphics.cpp +++ b/engines/parallaction/graphics.cpp @@ -221,7 +221,7 @@ void Graphics::fadePalette(byte *palette) { void Graphics::quickFadePalette(byte *palette) { - for (uint16 i = 0; i <= PALETTE_SIZE; i++) { + for (uint16 i = 0; i < PALETTE_SIZE; i++) { if (palette[i] == _palette[i]) continue; palette[i] += (palette[i] < _palette[i] ? 4 : -4); } |