[Scummvm-cvs-logs] SF.net SVN: scummvm:[44400] scummvm/trunk/engines/sci/engine/kgraphics.cpp

wjpalenstijn at users.sourceforge.net wjpalenstijn at users.sourceforge.net
Sun Sep 27 16:18:31 CEST 2009


Revision: 44400
          http://scummvm.svn.sourceforge.net/scummvm/?rev=44400&view=rev
Author:   wjpalenstijn
Date:     2009-09-27 14:18:21 +0000 (Sun, 27 Sep 2009)

Log Message:
-----------
SCI: turn assert into warning, as it used in QfG2 char import

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/kgraphics.cpp

Modified: scummvm/trunk/engines/sci/engine/kgraphics.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kgraphics.cpp	2009-09-27 13:48:51 UTC (rev 44399)
+++ scummvm/trunk/engines/sci/engine/kgraphics.cpp	2009-09-27 14:18:21 UTC (rev 44400)
@@ -1637,7 +1637,9 @@
 		entries_nr = 0;
 
 		// NOTE: most types of pointer dereferencing don't like odd offsets
-		assert((entry_size & 1) == 0);
+		if (entry_size & 1) {
+			warning("List control with odd entry_size %d. This is not yet implemented for all types of segments", entry_size);
+		}
 
 		reg_t seeker = text_pos;
 		// Count string entries in NULL terminated string list


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