diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sword1/control.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/sword1/control.cpp b/engines/sword1/control.cpp index 7cd85dff54..80d8edc1dd 100644 --- a/engines/sword1/control.cpp +++ b/engines/sword1/control.cpp @@ -856,10 +856,8 @@ bool Control::savegamesExist() { void Control::checkForOldSaveGames() { Common::InSaveFile *inf = _saveFileMan->openForLoading("SAVEGAME.INF"); - if (!inf) { - delete inf; + if (!inf) return; - } GUI::MessageDialog dialog0( _("ScummVM found that you have old savefiles for Broken Sword 1 that should be converted.\n" |