aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2016-05-24 23:17:08 +0200
committerStrangerke2016-05-24 23:17:08 +0200
commita68ef2fd1ced4545edcbacf86fa7107b78f5f3ed (patch)
tree2143a3037ecd9f12c4cee2e74a716a56ad95540a
parent2a364157109b96c637298dea23f8469b5f916b4d (diff)
downloadscummvm-rg350-a68ef2fd1ced4545edcbacf86fa7107b78f5f3ed.tar.gz
scummvm-rg350-a68ef2fd1ced4545edcbacf86fa7107b78f5f3ed.tar.bz2
scummvm-rg350-a68ef2fd1ced4545edcbacf86fa7107b78f5f3ed.zip
GNAP: Initialize the members of CutScene
-rw-r--r--engines/gnap/scenes/scenecore.cpp15
-rw-r--r--engines/gnap/scenes/scenecore.h2
2 files changed, 16 insertions, 1 deletions
diff --git a/engines/gnap/scenes/scenecore.cpp b/engines/gnap/scenes/scenecore.cpp
index 5e941f4975..d4b06c999f 100644
--- a/engines/gnap/scenes/scenecore.cpp
+++ b/engines/gnap/scenes/scenecore.cpp
@@ -649,6 +649,21 @@ bool Scene::clearKeyStatus() {
return false;
}
+/****************************************************************************/
+
+CutScene::CutScene(GnapEngine *vm) : Scene(vm) {
+ _itemsCount = -1;
+
+ for (int i = 0; i < 16; i++) {
+ _resourceIdArr[i] = -1;
+ _sequenceCountArr[i] = -1;
+ _canSkip[i] = false;
+ }
+
+ for (int i = 0; i < 50; i++)
+ _sequenceIdArr[i] = -1;
+};
+
void CutScene::run() {
GameSys& gameSys = *_vm->_gameSys;
diff --git a/engines/gnap/scenes/scenecore.h b/engines/gnap/scenes/scenecore.h
index 5bfc80d185..c54b5a7bc5 100644
--- a/engines/gnap/scenes/scenecore.h
+++ b/engines/gnap/scenes/scenecore.h
@@ -49,7 +49,7 @@ protected:
class CutScene : public Scene {
public:
- CutScene(GnapEngine *vm) : Scene(vm) {};
+ CutScene(GnapEngine *vm);
virtual ~CutScene() {};
virtual int init() = 0;