From df4978b7763c332ac836e56599ce5f84ad7e55a7 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 20 Sep 2009 23:56:21 +0000 Subject: Fix valgrind warning. svn-id: r44227 --- engines/kyra/screen_lol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/kyra') diff --git a/engines/kyra/screen_lol.cpp b/engines/kyra/screen_lol.cpp index ead33b0cff..f8ccb3727c 100644 --- a/engines/kyra/screen_lol.cpp +++ b/engines/kyra/screen_lol.cpp @@ -176,7 +176,7 @@ uint8 *Screen_LoL::generateLevelOverlay(const Palette &srcPal, uint8 *ovl, int o uint8 *d = ovl; *d++ = 0; - for (int i = 1; i != 255; i++) { + for (int i = 1; i != 256; i++) { uint16 a = srt[i * 3]; uint8 dr = a - ((((a - r) * (weight >> 1)) << 1) >> 8); a = srt[i * 3 + 1]; -- cgit v1.2.3