diff options
-rw-r--r-- | engines/mads/animation.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/mads/animation.cpp b/engines/mads/animation.cpp index b48491626d..cf02e7b0b5 100644 --- a/engines/mads/animation.cpp +++ b/engines/mads/animation.cpp @@ -436,6 +436,9 @@ void Animation::update() { if (_vm->_game->_scene._frameStartTime < _nextFrameTimer) return; + // Erase any active sprites + eraseSprites(); + // Validate the current frame if (_currentFrame >= (int)_miscEntries.size()) { // Is the animation allowed to be repeated? @@ -448,8 +451,6 @@ void Animation::update() { } } - eraseSprites(); - // Handle executing any sound command for this frame AnimMiscEntry &misc = _miscEntries[_currentFrame]; if (misc._soundId) |