[Scummvm-cvs-logs] SF.net SVN: scummvm:[44227] scummvm/trunk/engines/kyra/screen_lol.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Mon Sep 21 01:56:21 CEST 2009


Revision: 44227
          http://scummvm.svn.sourceforge.net/scummvm/?rev=44227&view=rev
Author:   lordhoto
Date:     2009-09-20 23:56:21 +0000 (Sun, 20 Sep 2009)

Log Message:
-----------
Fix valgrind warning.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/screen_lol.cpp

Modified: scummvm/trunk/engines/kyra/screen_lol.cpp
===================================================================
--- scummvm/trunk/engines/kyra/screen_lol.cpp	2009-09-20 23:38:35 UTC (rev 44226)
+++ scummvm/trunk/engines/kyra/screen_lol.cpp	2009-09-20 23:56:21 UTC (rev 44227)
@@ -176,7 +176,7 @@
 	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];


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list