[Scummvm-git-logs] scummvm master -> 4e0096bb9c742a2a97f262deb668838af962facd
sev-
sev at scummvm.org
Wed May 20 20:26:03 UTC 2020
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
4e0096bb9c DIRECTOR: Do not try to play movies without frames
Commit: 4e0096bb9c742a2a97f262deb668838af962facd
https://github.com/scummvm/scummvm/commit/4e0096bb9c742a2a97f262deb668838af962facd
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-05-20T22:25:35+02:00
Commit Message:
DIRECTOR: Do not try to play movies without frames
Changed paths:
engines/director/score.cpp
diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index e5a3f4faa5..112dc93a41 100644
--- a/engines/director/score.cpp
+++ b/engines/director/score.cpp
@@ -1684,6 +1684,11 @@ void Score::startLoop() {
_sprites = _frames[_currentFrame]->_sprites;
renderFrame(_currentFrame, true);
+ if (_frames.size() <= 1) { // We added one empty sprite
+ warning("Score::startLoop(): Movie has no frames");
+ _stopPlay = true;
+ }
+
while (!_stopPlay) {
if (_currentFrame >= _frames.size()) {
if (debugChannelSet(-1, kDebugNoLoop))
More information about the Scummvm-git-logs
mailing list