[Scummvm-cvs-logs] scummvm master -> 121bef4f79e23ad8ae569170d8375391f89b2aee

bluegr md5 at scummvm.org
Mon Oct 10 00:55:39 CEST 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
121bef4f79 MADE: Added missing finalize() calls to the game state saving code


Commit: 121bef4f79e23ad8ae569170d8375391f89b2aee
    https://github.com/scummvm/scummvm/commit/121bef4f79e23ad8ae569170d8375391f89b2aee
Author: Filippos Karapetis (md5 at scummvm.org)
Date: 2011-10-09T15:48:47-07:00

Commit Message:
MADE: Added missing finalize() calls to the game state saving code

Thanks to wjp for finding these

Changed paths:
    engines/made/database.cpp



diff --git a/engines/made/database.cpp b/engines/made/database.cpp
index b0cd4bb..454fe09 100644
--- a/engines/made/database.cpp
+++ b/engines/made/database.cpp
@@ -496,6 +496,7 @@ int16 GameDatabaseV2::savegame(const char *filename, const char *description, in
 	out->write(_gameState + 2, _gameStateSize - 2);
 	for (uint i = 0; i < _objects.size(); i++)
 		_objects[i]->save(*out);
+	out->finalize();
 	delete out;
 	return result;
 }
@@ -699,6 +700,7 @@ int16 GameDatabaseV3::savegame(const char *filename, const char *description, in
 	out->writeUint16LE(version);
 	out->write(desc, 64);
 	out->write(_gameState, _gameStateSize);
+	out->finalize();
 	delete out;
 	return result;
 }






More information about the Scummvm-git-logs mailing list