[Scummvm-cvs-logs] scummvm master -> 53f38aeff17913d33f5c64eaa2410dd1d4d71f9e

wjp wjp at usecode.org
Wed Apr 24 23:05:36 CEST 2013


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
53f38aeff1 DRASCULA: Remove dead code


Commit: 53f38aeff17913d33f5c64eaa2410dd1d4d71f9e
    https://github.com/scummvm/scummvm/commit/53f38aeff17913d33f5c64eaa2410dd1d4d71f9e
Author: Willem Jan Palenstijn (wjp at usecode.org)
Date: 2013-04-24T14:01:07-07:00

Commit Message:
DRASCULA: Remove dead code

Changed paths:
    engines/drascula/saveload.cpp



diff --git a/engines/drascula/saveload.cpp b/engines/drascula/saveload.cpp
index ba4148f..996c9d3 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"






More information about the Scummvm-git-logs mailing list