aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2015-01-31 12:53:35 +0100
committerStrangerke2015-01-31 12:53:35 +0100
commit0fcd78391b584cee9ca6435d9ee5e88c339aa0cc (patch)
tree20119019eeb7554dce51a171284a7f37fa3ec6e6 /engines
parent772cbc122d4cbfc06021facaa687921a138b98ab (diff)
downloadscummvm-rg350-0fcd78391b584cee9ca6435d9ee5e88c339aa0cc.tar.gz
scummvm-rg350-0fcd78391b584cee9ca6435d9ee5e88c339aa0cc.tar.bz2
scummvm-rg350-0fcd78391b584cee9ca6435d9ee5e88c339aa0cc.zip
MADS: Add a safeguard in doFrame
Diffstat (limited to 'engines')
-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();
}