aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2011-10-10 01:48:47 +0300
committerFilippos Karapetis2011-10-10 01:48:47 +0300
commit121bef4f79e23ad8ae569170d8375391f89b2aee (patch)
tree0edd7fb7bfc4d41ede450d53c6d53ea1e808e32e /engines
parentb17d424257bccfa355a3a43d4308f266c12f8698 (diff)
downloadscummvm-rg350-121bef4f79e23ad8ae569170d8375391f89b2aee.tar.gz
scummvm-rg350-121bef4f79e23ad8ae569170d8375391f89b2aee.tar.bz2
scummvm-rg350-121bef4f79e23ad8ae569170d8375391f89b2aee.zip
MADE: Added missing finalize() calls to the game state saving code
Thanks to wjp for finding these
Diffstat (limited to 'engines')
-rw-r--r--engines/made/database.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/made/database.cpp b/engines/made/database.cpp
index b0cd4bb262..454fe09a38 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;
}