DIRECTOR: Do not crash if movie was not loaded

This commit is contained in:
Eugene Sandulenko 2020-01-10 23:33:08 +01:00
parent d14a840e5e
commit 53901e7a9d

View File

@ -207,7 +207,7 @@ Common::Error DirectorEngine::run() {
_nextMovie.frameI = -1;
}
if (!debugChannelSet(-1, kDebugLingoCompileOnly)) {
if (!debugChannelSet(-1, kDebugLingoCompileOnly) && _currentScore) {
debugC(1, kDebugEvents, "Starting playback of score '%s'", _currentScore->getMacName().c_str());
_currentScore->startLoop();