diff options
-rw-r--r-- | sword1/control.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sword1/control.cpp b/sword1/control.cpp index 8a0b0207f1..ffc613893b 100644 --- a/sword1/control.cpp +++ b/sword1/control.cpp @@ -517,7 +517,7 @@ bool SwordControl::savegamesExist(void) { SaveFileManager *mgr = _system->get_savefile_manager(); SaveFile *inf; inf = mgr->open_savefile("SAVEGAME.INF", _savePath, SAVEFILE_READ); - if (inf->isOpen()) + if (inf && inf->isOpen()) retVal = true; delete inf; delete mgr; |