aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/mads/menu_views.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mads/menu_views.cpp b/engines/mads/menu_views.cpp
index b492d98125..8f1fd2d7a5 100644
--- a/engines/mads/menu_views.cpp
+++ b/engines/mads/menu_views.cpp
@@ -550,7 +550,7 @@ void AnimationView::doFrame() {
scene._cyclingActive = _nextCyclingActive;
}
- if (++_scrollFrameCtr >= _currentAnimation->_header._scrollTicks) {
+ if (_currentAnimation && (++_scrollFrameCtr >= _currentAnimation->_header._scrollTicks)) {
_scrollFrameCtr = 0;
scroll();
}