From 0fcd78391b584cee9ca6435d9ee5e88c339aa0cc Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sat, 31 Jan 2015 12:53:35 +0100 Subject: MADS: Add a safeguard in doFrame --- engines/mads/menu_views.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/mads/menu_views.cpp') 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(); } -- cgit v1.2.3