aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/nebular/nebular_scenes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads/nebular/nebular_scenes.cpp')
-rw-r--r--engines/mads/nebular/nebular_scenes.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/engines/mads/nebular/nebular_scenes.cpp b/engines/mads/nebular/nebular_scenes.cpp
index efd831a4b7..e1dec2c34c 100644
--- a/engines/mads/nebular/nebular_scenes.cpp
+++ b/engines/mads/nebular/nebular_scenes.cpp
@@ -31,17 +31,19 @@ namespace MADS {
namespace Nebular {
-SceneLogic *SceneFactory::createScene(Scene *scene) {
- scene->addActiveVocab(NOUN_DROP);
- scene->addActiveVocab(NOUN_DOLLOP);
- scene->addActiveVocab(NOUN_DASH);
- scene->addActiveVocab(NOUN_SPLASH);
- scene->addActiveVocab(NOUN_ALCOHOL);
+SceneLogic *SceneFactory::createScene(MADSEngine *vm) {
+ Scene &scene = vm->_game->_scene;
+
+ scene.addActiveVocab(NOUN_DROP);
+ scene.addActiveVocab(NOUN_DOLLOP);
+ scene.addActiveVocab(NOUN_DASH);
+ scene.addActiveVocab(NOUN_SPLASH);
+ scene.addActiveVocab(NOUN_ALCOHOL);
// TODO: Implement all the game scenes
- assert(scene->_nextSceneId == 804);
+ assert(scene._nextSceneId == 804);
- return new Scene804(scene);
+ return new Scene804(vm);
}
} // End of namespace Nebular