[Scummvm-cvs-logs] SF.net SVN: scummvm:[39344] scummvm/trunk/engines/cine/pal.cpp

buddha_ at users.sourceforge.net buddha_ at users.sourceforge.net
Wed Mar 11 23:50:36 CET 2009


Revision: 39344
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39344&view=rev
Author:   buddha_
Date:     2009-03-11 22:50:36 +0000 (Wed, 11 Mar 2009)

Log Message:
-----------
Fix assertion (Doh! That was supposed to be the other way).

Modified Paths:
--------------
    scummvm/trunk/engines/cine/pal.cpp

Modified: scummvm/trunk/engines/cine/pal.cpp
===================================================================
--- scummvm/trunk/engines/cine/pal.cpp	2009-03-11 22:50:06 UTC (rev 39343)
+++ scummvm/trunk/engines/cine/pal.cpp	2009-03-11 22:50:36 UTC (rev 39344)
@@ -246,7 +246,7 @@
 }
 
 byte *Palette::save(byte *colors, const uint numBytes, const Graphics::PixelFormat format) const {
-	assert(numBytes <= format.bytesPerPixel * colorCount()); // Make sure there's enough output space
+	assert(format.bytesPerPixel * colorCount() <= numBytes); // Make sure there's enough output space
 
 	// Clear the part of the output palette we're going to be writing to with all black
 	memset(colors, 0, format.bytesPerPixel * colorCount());


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