mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-04 15:51:42 +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;
|
scene._cyclingActive = _nextCyclingActive;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (++_scrollFrameCtr >= _currentAnimation->_header._scrollTicks) {
|
if (_currentAnimation && (++_scrollFrameCtr >= _currentAnimation->_header._scrollTicks)) {
|
||||||
_scrollFrameCtr = 0;
|
_scrollFrameCtr = 0;
|
||||||
scroll();
|
scroll();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user