diff options
author | Strangerke | 2014-05-27 18:48:57 +0200 |
---|---|---|
committer | Strangerke | 2014-05-27 18:48:57 +0200 |
commit | 0eda31a6af286eb1f4524c1e4e078fe751ff7d1d (patch) | |
tree | 18f8f6970e54696d2423b8b7673311ea1544e1bc | |
parent | 46150086abded1e074d98757ea584f14641b1a36 (diff) | |
download | scummvm-rg350-0eda31a6af286eb1f4524c1e4e078fe751ff7d1d.tar.gz scummvm-rg350-0eda31a6af286eb1f4524c1e4e078fe751ff7d1d.tar.bz2 scummvm-rg350-0eda31a6af286eb1f4524c1e4e078fe751ff7d1d.zip |
MADS: Initialize variable in SceneTeleporter
-rw-r--r-- | engines/mads/nebular/nebular_scenes.cpp | 13 | ||||
-rw-r--r-- | engines/mads/nebular/nebular_scenes.h | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/engines/mads/nebular/nebular_scenes.cpp b/engines/mads/nebular/nebular_scenes.cpp index cbfc055b6f..52b565016f 100644 --- a/engines/mads/nebular/nebular_scenes.cpp +++ b/engines/mads/nebular/nebular_scenes.cpp @@ -344,6 +344,19 @@ void SceneInfoNebular::loadCodes(MSurface &depthSurface, Common::SeekableReadStr /*------------------------------------------------------------------------*/ +SceneTeleporter::SceneTeleporter(MADSEngine *vm) : NebularScene(vm) { + _buttonTyped = -1; + _curCode = -1; + _digitCount = -1; + _curMessageId = -1; + _handSpriteId = -1; + _handSequenceId = -1; + _finishedCodeCounter = -1; + _meteorologistNextPlace = -1; + _meteorologistCurPlace = -1; + _teleporterSceneId = -1; +} + int SceneTeleporter::teleporterAddress(int code, bool working) { int limit = working ? 6 : 10; diff --git a/engines/mads/nebular/nebular_scenes.h b/engines/mads/nebular/nebular_scenes.h index 9f11291d37..6195395fd6 100644 --- a/engines/mads/nebular/nebular_scenes.h +++ b/engines/mads/nebular/nebular_scenes.h @@ -1408,7 +1408,7 @@ protected: /** * Constructor */ - SceneTeleporter(MADSEngine *vm) : NebularScene(vm) {} + SceneTeleporter(MADSEngine *vm); }; } // End of namespace Nebular |