diff options
author | Johannes Schickel | 2010-08-03 15:09:39 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-08-03 15:09:39 +0000 |
commit | b149ca89d518feb470ffc71893c5e0717b7482da (patch) | |
tree | 7ae495a1c361514c0186a8847ac8509f9f4eeeca /engines/kyra | |
parent | 65e215628d26397ed23ef53db46fb2b8a5203eb3 (diff) | |
download | scummvm-rg350-b149ca89d518feb470ffc71893c5e0717b7482da.tar.gz scummvm-rg350-b149ca89d518feb470ffc71893c5e0717b7482da.tar.bz2 scummvm-rg350-b149ca89d518feb470ffc71893c5e0717b7482da.zip |
KYRA3: Fix bug in Screen_v2::generateOverlay.
Uncovered by a valgrind warning.
svn-id: r51698
Diffstat (limited to 'engines/kyra')
-rw-r--r-- | engines/kyra/screen_v2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/screen_v2.cpp b/engines/kyra/screen_v2.cpp index 919b9086f3..f493b39f19 100644 --- a/engines/kyra/screen_v2.cpp +++ b/engines/kyra/screen_v2.cpp @@ -53,7 +53,7 @@ uint8 *Screen_v2::generateOverlay(const Palette &pal, uint8 *buffer, int startCo uint8 *dst = buffer; *dst++ = 0; - for (int i = 1; i != 255; ++i) { + for (int i = 1; i != 256; ++i) { uint8 processedPalette[3]; byte col; |