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

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sun Oct 11 21:23:00 CEST 2009


Revision: 44940
          http://scummvm.svn.sourceforge.net/scummvm/?rev=44940&view=rev
Author:   thebluegr
Date:     2009-10-11 19:23:00 +0000 (Sun, 11 Oct 2009)

Log Message:
-----------
The _variables array is sized from syncArray, so there's no need to store its size in the savegame

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

Modified: scummvm/trunk/engines/sci/engine/savegame.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/savegame.cpp	2009-10-11 19:06:30 UTC (rev 44939)
+++ scummvm/trunk/engines/sci/engine/savegame.cpp	2009-10-11 19:23:00 UTC (rev 44940)
@@ -317,14 +317,7 @@
 void Object::saveLoadWithSerializer(Common::Serializer &s) {
 	s.syncAsSint32LE(_flags);
 	sync_reg_t(s, _pos);
-	int varCount;
-	if (s.isLoading()) {
-		s.syncAsSint32LE(varCount);
-		_variables.resize(varCount);
-	} else {
-		varCount = _variables.size();
-		s.syncAsSint32LE(varCount);
-	}
+	s.skip(4, VER(9), VER(12));			// OBSOLETE: Used to be variable_names_nr
 	s.syncAsSint32LE(_methodCount);		// that's actually a uint16
 
 	syncArray<reg_t>(s, _variables);


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