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

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Thu Jun 24 23:32:29 CEST 2010


Revision: 50235
          http://scummvm.svn.sourceforge.net/scummvm/?rev=50235&view=rev
Author:   m_kiewitz
Date:     2010-06-24 21:32:29 +0000 (Thu, 24 Jun 2010)

Log Message:
-----------
SCI: better initialize temp variables with FFFF:0 instead. foreign lsl3 uses kFileIO(readraw) and then kReadNumber directly. In that case we would produce many warnings because no terminating 0 is found

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

Modified: scummvm/trunk/engines/sci/engine/vm.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/vm.cpp	2010-06-24 21:09:38 UTC (rev 50234)
+++ scummvm/trunk/engines/sci/engine/vm.cpp	2010-06-24 21:32:29 UTC (rev 50235)
@@ -1188,7 +1188,7 @@
 			// We shouldn't initialize temp variables at all
 			//  We put special segment 0xFFFF in there, so that uninitialized reads can get detected
 			for (int i = 0; i < opparams[0]; i++)
-				s->xs->sp[i] = make_reg(0xffff, 0xffff);
+				s->xs->sp[i] = make_reg(0xffff, 0);
 //			for (int i = 0; i < opparams[0]; i++)
 //				s->xs->sp[i] = make_reg(0, 'ss');
 


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