aboutsummaryrefslogtreecommitdiff
path: root/sword1
diff options
context:
space:
mode:
authorJonathan Gray2003-12-31 12:32:34 +0000
committerJonathan Gray2003-12-31 12:32:34 +0000
commitde014ec97178b36a2aa2f8e6fe958bd7211620c7 (patch)
tree067123bb11c09d208647a7568a415f3cacb5acae /sword1
parent23fd50715fe23bf1bba2b4bc04f700cab6ae178c (diff)
downloadscummvm-rg350-de014ec97178b36a2aa2f8e6fe958bd7211620c7.tar.gz
scummvm-rg350-de014ec97178b36a2aa2f8e6fe958bd7211620c7.tar.bz2
scummvm-rg350-de014ec97178b36a2aa2f8e6fe958bd7211620c7.zip
fix segfault
svn-id: r12049
Diffstat (limited to 'sword1')
-rw-r--r--sword1/control.cpp2
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;