diff options
Diffstat (limited to 'backends/saves/savefile.cpp')
-rw-r--r-- | backends/saves/savefile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/saves/savefile.cpp b/backends/saves/savefile.cpp index 98a3d6b449..29d477a6c1 100644 --- a/backends/saves/savefile.cpp +++ b/backends/saves/savefile.cpp @@ -50,14 +50,14 @@ bool SaveFileManager::renameSavefile(const char *oldFilename, const char *newFil if (buffer && outFile) { inFile->read(buffer, size); - bool error = inFile->ioFailed(); + bool error = inFile->err(); delete inFile; inFile = 0; if (!error) { outFile->write(buffer, size); outFile->finalize(); - if (!outFile->ioFailed()) { + if (!outFile->err()) { success = removeSavefile(oldFilename); } } |