mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-30 21:00:39 +00:00
MADE: Added missing finalize() calls to the game state saving code
Thanks to wjp for finding these
This commit is contained in:
parent
b17d424257
commit
121bef4f79
@ -496,6 +496,7 @@ int16 GameDatabaseV2::savegame(const char *filename, const char *description, in
|
|||||||
out->write(_gameState + 2, _gameStateSize - 2);
|
out->write(_gameState + 2, _gameStateSize - 2);
|
||||||
for (uint i = 0; i < _objects.size(); i++)
|
for (uint i = 0; i < _objects.size(); i++)
|
||||||
_objects[i]->save(*out);
|
_objects[i]->save(*out);
|
||||||
|
out->finalize();
|
||||||
delete out;
|
delete out;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@ -699,6 +700,7 @@ int16 GameDatabaseV3::savegame(const char *filename, const char *description, in
|
|||||||
out->writeUint16LE(version);
|
out->writeUint16LE(version);
|
||||||
out->write(desc, 64);
|
out->write(desc, 64);
|
||||||
out->write(_gameState, _gameStateSize);
|
out->write(_gameState, _gameStateSize);
|
||||||
|
out->finalize();
|
||||||
delete out;
|
delete out;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user