aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2013-04-22 22:15:49 +0200
committerWillem Jan Palenstijn2013-04-22 22:18:52 +0200
commit3943d3403411c24ae2dba7cf7254abf0e20b8e84 (patch)
tree599b0e071d9dc7e2efc1994ba0f068a189965a68 /engines/sword1
parent581031a55d35f50f11819e9738f886945f026293 (diff)
downloadscummvm-rg350-3943d3403411c24ae2dba7cf7254abf0e20b8e84.tar.gz
scummvm-rg350-3943d3403411c24ae2dba7cf7254abf0e20b8e84.tar.bz2
scummvm-rg350-3943d3403411c24ae2dba7cf7254abf0e20b8e84.zip
SWORD1: Remove dead code
Diffstat (limited to 'engines/sword1')
-rw-r--r--engines/sword1/control.cpp4
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"