aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2014-04-16 22:59:07 -0400
committerPaul Gilbert2014-04-16 22:59:07 -0400
commit45084a4702bbdbc4a560470fa1dc12dba3549a61 (patch)
tree8217510d1761d0e53ccc5b873bb8e43e1a692c80 /engines
parent73a505543829c5da58f7ac31f3a9ab87f0f8b93a (diff)
downloadscummvm-rg350-45084a4702bbdbc4a560470fa1dc12dba3549a61.tar.gz
scummvm-rg350-45084a4702bbdbc4a560470fa1dc12dba3549a61.tar.bz2
scummvm-rg350-45084a4702bbdbc4a560470fa1dc12dba3549a61.zip
MADS: Fix scene animation data being unloaded prematurely
Diffstat (limited to 'engines')
-rw-r--r--engines/mads/scene.cpp1
-rw-r--r--engines/mads/scene.h1
2 files changed, 1 insertions, 1 deletions
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<int> _activeVocabs;
SequenceList _sequences;