aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2013-04-24 23:01:07 +0200
committerWillem Jan Palenstijn2013-04-24 23:01:07 +0200
commit53f38aeff17913d33f5c64eaa2410dd1d4d71f9e (patch)
tree92a402d1b350759cd7758774dbad69bcb5c762f6
parent5fc59f9bd8f0752bb5f1f81ab1c82d7276279cd3 (diff)
downloadscummvm-rg350-53f38aeff17913d33f5c64eaa2410dd1d4d71f9e.tar.gz
scummvm-rg350-53f38aeff17913d33f5c64eaa2410dd1d4d71f9e.tar.bz2
scummvm-rg350-53f38aeff17913d33f5c64eaa2410dd1d4d71f9e.zip
DRASCULA: Remove dead code
-rw-r--r--engines/drascula/saveload.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/drascula/saveload.cpp b/engines/drascula/saveload.cpp
index ba4148fb76..996c9d3f03 100644
--- a/engines/drascula/saveload.cpp
+++ b/engines/drascula/saveload.cpp
@@ -40,10 +40,8 @@ void DrasculaEngine::checkForOldSaveGames() {
Common::InSaveFile *indexFile = _saveFileMan->openForLoading(indexFileName);
// Check for the existence of an old index file
- if (!indexFile) {
- delete indexFile;
+ if (!indexFile)
return;
- }
GUI::MessageDialog dialog0(
_("ScummVM found that you have old savefiles for Drascula that should be converted.\n"