diff options
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; } |