aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNicola Mettifogo2007-02-04 12:14:11 +0000
committerNicola Mettifogo2007-02-04 12:14:11 +0000
commit5007d82ec7b771579df86c050eba75caddd3931f (patch)
tree331600aeef7968cee136d8ad7fc9349eeb415511 /engines
parent9832736f9a8f66cfc67c2b26ec6cca4a442b210a (diff)
downloadscummvm-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')
-rw-r--r--engines/parallaction/graphics.cpp2
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);
}