mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
Stopped returning from Animation::nextFrame() early even if the animation has only one frame because such animations may need to have callbacks called too. Fixes intro freeze during mother's lecture.
svn-id: r43313
This commit is contained in:
parent
8ca10ac3b0
commit
3022c623d6
@ -85,8 +85,8 @@ void Animation::markDirtyRect(Surface *surface) {
|
||||
|
||||
void Animation::nextFrame(bool force) {
|
||||
|
||||
// If there's only one or no frames, or if the animation is not playing, return
|
||||
if (getFrameCount() < 2 || !_playing)
|
||||
// If there are no frames or if the animation is not playing, return
|
||||
if (getFrameCount() == 0 || !_playing)
|
||||
return;
|
||||
|
||||
Drawable *frame = _frames[_currentFrame];
|
||||
|
Loading…
Reference in New Issue
Block a user