diff options
author | Eugene Sandulenko | 2020-01-10 23:33:08 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2020-01-10 23:33:08 +0100 |
commit | 53901e7a9d84275cc47d6a7d8d4d0a8b56a651a7 (patch) | |
tree | 285e0b0f84123fb4cd75c07ef9e2694b108b9ef9 | |
parent | d14a840e5e7cae6b8829c0cd7d65886321bcf3de (diff) | |
download | scummvm-rg350-53901e7a9d84275cc47d6a7d8d4d0a8b56a651a7.tar.gz scummvm-rg350-53901e7a9d84275cc47d6a7d8d4d0a8b56a651a7.tar.bz2 scummvm-rg350-53901e7a9d84275cc47d6a7d8d4d0a8b56a651a7.zip |
DIRECTOR: Do not crash if movie was not loaded
-rw-r--r-- | engines/director/director.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/director/director.cpp b/engines/director/director.cpp index 14a63db8b6..66635eb875 100644 --- a/engines/director/director.cpp +++ b/engines/director/director.cpp @@ -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(); |