From 25c153ff29baca89f5b594b70a8ff949d8edb89d Mon Sep 17 00:00:00 2001 From: Strangerke Date: Wed, 28 May 2014 00:51:48 +0200 Subject: MADS: Initialize variables in Animation --- engines/mads/animation.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/engines/mads/animation.cpp b/engines/mads/animation.cpp index 0f98cb52e6..6af8a9ae5f 100644 --- a/engines/mads/animation.cpp +++ b/engines/mads/animation.cpp @@ -164,6 +164,17 @@ Animation::Animation(MADSEngine *vm, Scene *scene) : _vm(vm), _scene(scene) { _resetFlag = false; _messageCtr = 0; _skipLoad = false; + _freeFlag = false; + _unkIndex = -1; + _nextFrameTimer = 0; + _nextScrollTimer = 0; + _trigger = 0; + _triggerMode = SEQUENCE_TRIGGER_PREPARE; + _actionDetails._verbId = VERB_NONE; + _actionDetails._objectNameId = -1; + _actionDetails._indirectObjectId = -1; + _currentFrame = 0; + _oldFrameEntry = 0; } Animation::~Animation() { -- cgit v1.2.3