[Scummvm-cvs-logs] SF.net SVN: scummvm: [23441] scummvm/branches/branch-0-9-0/engines/simon/animation.cpp

kirben at users.sourceforge.net kirben at users.sourceforge.net
Thu Jul 20 22:37:42 CEST 2006


Revision: 23441
          http://svn.sourceforge.net/scummvm/?rev=23441&view=rev
Author:   kirben
Date:     2006-07-08 16:37:55 -0700 (Sat, 08 Jul 2006)

Log Message:
-----------
Add fix for bug #1519327 - FF: Stack corruption

Modified Paths:
--------------
    scummvm/branches/branch-0-9-0/engines/simon/animation.cpp

Modified: scummvm/branches/branch-0-9-0/engines/simon/animation.cpp
===================================================================
--- scummvm/branches/branch-0-9-0/engines/simon/animation.cpp	2006-07-08 20:56:02 UTC (rev 23440)
+++ scummvm/branches/branch-0-9-0/engines/simon/animation.cpp	2006-07-08 23:37:55 UTC (rev 23441)
@@ -378,7 +378,7 @@
 		byte *p = palette;
 
 		_fd.read(rgb, ARRAYSIZE(rgb));
-		for (int i = 0; i <= 256; i++) {
+		for (int i = 0; i < 256; i++) {
 			*p++ = rgb[i * 3 + 0];
 			*p++ = rgb[i * 3 + 1];
 			*p++ = rgb[i * 3 + 2];






More information about the Scummvm-git-logs mailing list