aboutsummaryrefslogtreecommitdiff
path: root/engines/neverhood/modules/module2400.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2013-06-28 11:19:46 +0300
committerFilippos Karapetis2013-06-28 11:20:40 +0300
commit63624f8bfa3f79302317589c9c3adbc852563a6c (patch)
treeae51da1af70e74dd0f79791fd1f93099f33119c2 /engines/neverhood/modules/module2400.cpp
parentb0411d50598ab8d4fd96c267058257a66e36f430 (diff)
downloadscummvm-rg350-63624f8bfa3f79302317589c9c3adbc852563a6c.tar.gz
scummvm-rg350-63624f8bfa3f79302317589c9c3adbc852563a6c.tar.bz2
scummvm-rg350-63624f8bfa3f79302317589c9c3adbc852563a6c.zip
NEVERHOOD: Fix scene entrance when restoring in the Aqua (music) house
This looks to be a logic error in the constructor of module 2400, since all the other modules do not create scenes with the global entrance number when they are instantiated without an entrance (i.e. when loading). With that logic error, all the code that handled Kleymen's entrance to a scene after restoring was incorrectly skipped
Diffstat (limited to 'engines/neverhood/modules/module2400.cpp')
-rw-r--r--engines/neverhood/modules/module2400.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/neverhood/modules/module2400.cpp b/engines/neverhood/modules/module2400.cpp
index 47f842b939..8d3b763f72 100644
--- a/engines/neverhood/modules/module2400.cpp
+++ b/engines/neverhood/modules/module2400.cpp
@@ -30,7 +30,7 @@ Module2400::Module2400(NeverhoodEngine *vm, Module *parentModule, int which)
_vm->_soundMan->addMusic(0x202D1010, 0xB110382D);
if (which < 0)
- createScene(_vm->gameState().sceneNum, _vm->gameState().which);
+ createScene(_vm->gameState().sceneNum, -1);
else
createScene(0, 0);