aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2013-06-09 17:11:24 +0300
committerFilippos Karapetis2013-06-09 17:11:24 +0300
commit9e0c843c9f41239a878e8d2772c27507196428b6 (patch)
treef478e8b43ffd7f1ae9346906b6ae7a69f1284297
parentf2d0f76939f713bfe4317798665e1ba004f122f3 (diff)
downloadscummvm-rg350-9e0c843c9f41239a878e8d2772c27507196428b6.tar.gz
scummvm-rg350-9e0c843c9f41239a878e8d2772c27507196428b6.tar.bz2
scummvm-rg350-9e0c843c9f41239a878e8d2772c27507196428b6.zip
NEVERHOOD: Remove superfluous check
-rw-r--r--engines/neverhood/gamemodule.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/neverhood/gamemodule.cpp b/engines/neverhood/gamemodule.cpp
index db4d0ef374..e63109adee 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: