diff options
author | Torbjörn Andersson | 2005-11-05 14:24:13 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-11-05 14:24:13 +0000 |
commit | ffbbafed15b1625a94eb09680873ae8f7a636989 (patch) | |
tree | 84bd808e4316fc026dfdb6387a7712ba2f119873 /saga | |
parent | b8aaa2ed04d00e7937111735aaa845864f6aee98 (diff) | |
download | scummvm-rg350-ffbbafed15b1625a94eb09680873ae8f7a636989.tar.gz scummvm-rg350-ffbbafed15b1625a94eb09680873ae8f7a636989.tar.bz2 scummvm-rg350-ffbbafed15b1625a94eb09680873ae8f7a636989.zip |
Call flush() in the savegame stream, when saving. I think SAGA, Simon and
BS2 were the last engines that didn't. But I could be mistaken.
svn-id: r19463
Diffstat (limited to 'saga')
-rw-r--r-- | saga/saveload.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/saga/saveload.cpp b/saga/saveload.cpp index 4ded01925a..7e68bb4eef 100644 --- a/saga/saveload.cpp +++ b/saga/saveload.cpp @@ -202,6 +202,10 @@ void SagaEngine::save(const char *fileName, const char *saveName) { out->writeSint16LE(_isoMap->getMapPosition().x); out->writeSint16LE(_isoMap->getMapPosition().y); + out->flush(); + + // TODO: Check out->ioFailed() + delete out; } |