diff options
author | Strangerke | 2015-01-31 12:53:35 +0100 |
---|---|---|
committer | Strangerke | 2015-01-31 12:53:35 +0100 |
commit | 0fcd78391b584cee9ca6435d9ee5e88c339aa0cc (patch) | |
tree | 20119019eeb7554dce51a171284a7f37fa3ec6e6 | |
parent | 772cbc122d4cbfc06021facaa687921a138b98ab (diff) | |
download | scummvm-rg350-0fcd78391b584cee9ca6435d9ee5e88c339aa0cc.tar.gz scummvm-rg350-0fcd78391b584cee9ca6435d9ee5e88c339aa0cc.tar.bz2 scummvm-rg350-0fcd78391b584cee9ca6435d9ee5e88c339aa0cc.zip |
MADS: Add a safeguard in doFrame
-rw-r--r-- | engines/mads/menu_views.cpp | 2 |
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(); } |