diff options
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); } |