diff options
author | Eugene Sandulenko | 2019-12-10 01:05:43 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2019-12-10 01:05:43 +0100 |
commit | 73fd89b17ba8d95993f287fdfb27a5978b23eee2 (patch) | |
tree | 5d04be1d6cb98db9d6bfffc48dc055e63a1428c9 /engines/director/lingo/lingo-builtins.cpp | |
parent | b4567e9cac78f367a1bcb38f894bf6c9a45a1994 (diff) | |
download | scummvm-rg350-73fd89b17ba8d95993f287fdfb27a5978b23eee2.tar.gz scummvm-rg350-73fd89b17ba8d95993f287fdfb27a5978b23eee2.tar.bz2 scummvm-rg350-73fd89b17ba8d95993f287fdfb27a5978b23eee2.zip |
DIRECTOR: LINGO: Cleanup
Diffstat (limited to 'engines/director/lingo/lingo-builtins.cpp')
-rw-r--r-- | engines/director/lingo/lingo-builtins.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/director/lingo/lingo-builtins.cpp b/engines/director/lingo/lingo-builtins.cpp index c5d7cbf4cd..a4da64b562 100644 --- a/engines/director/lingo/lingo-builtins.cpp +++ b/engines/director/lingo/lingo-builtins.cpp @@ -1316,7 +1316,7 @@ void Lingo::b_zoomBox(int nargs) { // Looks for endSprite in the next frame Common::Rect *endRect = frame->getSpriteRect(endSprite.u.i); if (!endRect) { - if (score->_frames.size() - 1 > curFrame) + if (curFrame + 1 < score->_frames.size()) score->_frames[curFrame + 1]->getSpriteRect(endSprite.u.i); } |