aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/mads/scene.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/mads/scene.cpp b/engines/mads/scene.cpp
index 13913030df..4af956a9f6 100644
--- a/engines/mads/scene.cpp
+++ b/engines/mads/scene.cpp
@@ -591,7 +591,11 @@ void Scene::checkKeyboard() {
}
void Scene::loadAnimation(const Common::String &resName, int trigger) {
- assert(_activeAnimation == nullptr);
+ // WORKAROUND: If there's already a previous active animation used by the
+ // scene, then free it before we create the new one
+ if (_activeAnimation)
+ freeAnimation();
+
DepthSurface depthSurface(_vm);
UserInterface interfaceSurface(_vm);