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:
Denis Kasak 2009-08-12 07:37:08 +00:00
parent 8ca10ac3b0
commit 3022c623d6

View File

@ -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];