diff options
author | Eugene Sandulenko | 2017-03-21 23:34:30 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-03-21 23:44:51 +0100 |
commit | 9ab68d71d8d1c70e57935f8c4eb3d3632183e76c (patch) | |
tree | 8902ac901e81626d57210bead2c04ce7866fb768 /engines | |
parent | 6fc8b6e6df1a4eef46a521cf9d91d632e305fc98 (diff) | |
download | scummvm-rg350-9ab68d71d8d1c70e57935f8c4eb3d3632183e76c.tar.gz scummvm-rg350-9ab68d71d8d1c70e57935f8c4eb3d3632183e76c.tar.bz2 scummvm-rg350-9ab68d71d8d1c70e57935f8c4eb3d3632183e76c.zip |
DIRECTOR: Do not call event handler after movie is ended
Diffstat (limited to 'engines')
-rw-r--r-- | engines/director/score.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp index c744a91299..83fe6dd5c0 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -1078,7 +1078,9 @@ void Score::startLoop() { while (!_stopPlay && _currentFrame < _frames.size()) { debugC(1, kDebugImages, "****************************** Current frame: %d", _currentFrame + 1); update(); - _vm->processEvents(); + + if (_currentFrame < _frames.size()) + _vm->processEvents(); } } |