aboutsummaryrefslogtreecommitdiff
path: root/backends/saves
diff options
context:
space:
mode:
Diffstat (limited to 'backends/saves')
-rw-r--r--backends/saves/default/default-saves.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/saves/default/default-saves.cpp b/backends/saves/default/default-saves.cpp
index a35b76c98a..a6adb19112 100644
--- a/backends/saves/default/default-saves.cpp
+++ b/backends/saves/default/default-saves.cpp
@@ -82,6 +82,8 @@ Common::InSaveFile *DefaultSaveFileManager::openForLoading(const char *filename)
return 0;
Common::FSNode file = savePath.getChild(filename);
+ if (!file.exists())
+ return 0;
// Open the file for reading
Common::SeekableReadStream *sf = file.createReadStream();