mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-03 15:21:40 +00:00
MADS: Add a safeguard in doFrame
This commit is contained in:
parent
772cbc122d
commit
0fcd78391b
@ -550,7 +550,7 @@ void AnimationView::doFrame() {
|
||||
scene._cyclingActive = _nextCyclingActive;
|
||||
}
|
||||
|
||||
if (++_scrollFrameCtr >= _currentAnimation->_header._scrollTicks) {
|
||||
if (_currentAnimation && (++_scrollFrameCtr >= _currentAnimation->_header._scrollTicks)) {
|
||||
_scrollFrameCtr = 0;
|
||||
scroll();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user