From f38e6b0d766a0cb19e91b816d0f42a77d368b730 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 28 Feb 2009 18:07:14 +0000 Subject: Fix annoying warnings in the default savemanager svn-id: r38976 --- backends/saves/default/default-saves.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'backends/saves') 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(); -- cgit v1.2.3