From 9e0c843c9f41239a878e8d2772c27507196428b6 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 9 Jun 2013 17:11:24 +0300 Subject: [PATCH] NEVERHOOD: Remove superfluous check --- engines/neverhood/gamemodule.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/engines/neverhood/gamemodule.cpp b/engines/neverhood/gamemodule.cpp index db4d0ef3742..e63109adee0 100644 --- a/engines/neverhood/gamemodule.cpp +++ b/engines/neverhood/gamemodule.cpp @@ -441,8 +441,7 @@ void GameModule::createModule(int moduleNum, int which) { debug("GameModule::createModule(%d, %d)", moduleNum, which); _moduleNum = moduleNum; - if (_childObject) - delete _childObject; + delete _childObject; switch (_moduleNum) { case 1000: