aboutsummaryrefslogtreecommitdiff
path: root/backends/saves
diff options
context:
space:
mode:
authorMax Horn2009-02-28 18:07:14 +0000
committerMax Horn2009-02-28 18:07:14 +0000
commitf38e6b0d766a0cb19e91b816d0f42a77d368b730 (patch)
treeabe66a94762d7cb3ef7697685644f76239a92175 /backends/saves
parent26cb1657bc580dac1fa3188bd899d0fbd40f7555 (diff)
downloadscummvm-rg350-f38e6b0d766a0cb19e91b816d0f42a77d368b730.tar.gz
scummvm-rg350-f38e6b0d766a0cb19e91b816d0f42a77d368b730.tar.bz2
scummvm-rg350-f38e6b0d766a0cb19e91b816d0f42a77d368b730.zip
Fix annoying warnings in the default savemanager
svn-id: r38976
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();