aboutsummaryrefslogtreecommitdiff
path: root/saga
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-11-05 14:24:13 +0000
committerTorbjörn Andersson2005-11-05 14:24:13 +0000
commitffbbafed15b1625a94eb09680873ae8f7a636989 (patch)
tree84bd808e4316fc026dfdb6387a7712ba2f119873 /saga
parentb8aaa2ed04d00e7937111735aaa845864f6aee98 (diff)
downloadscummvm-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.cpp4
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;
}