From 45084a4702bbdbc4a560470fa1dc12dba3549a61 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 16 Apr 2014 22:59:07 -0400 Subject: MADS: Fix scene animation data being unloaded prematurely --- engines/mads/scene.cpp | 1 + engines/mads/scene.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/mads/scene.cpp b/engines/mads/scene.cpp index e2892fbbd1..99151c1267 100644 --- a/engines/mads/scene.cpp +++ b/engines/mads/scene.cpp @@ -398,6 +398,7 @@ void Scene::doFrame() { if (_freeAnimationFlag && _activeAnimation) { _activeAnimation->free(); + _freeAnimationFlag = false; _activeAnimation = nullptr; } } diff --git a/engines/mads/scene.h b/engines/mads/scene.h index f18d6ad4cd..b695f3b1fa 100644 --- a/engines/mads/scene.h +++ b/engines/mads/scene.h @@ -91,7 +91,6 @@ public: TextDisplayList _textDisplay; SpriteSlots _spriteSlots; SpriteSets _sprites; - int _spritesIndex; DynamicHotspots _dynamicHotspots; Common::Array _activeVocabs; SequenceList _sequences; -- cgit v1.2.3