diff options
-rw-r--r-- | engines/sherlock/scalpel/scalpel_scene.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sherlock/scalpel/scalpel_scene.cpp b/engines/sherlock/scalpel/scalpel_scene.cpp index 87fe208520..813e4188ae 100644 --- a/engines/sherlock/scalpel/scalpel_scene.cpp +++ b/engines/sherlock/scalpel/scalpel_scene.cpp @@ -590,7 +590,7 @@ int ScalpelScene::startCAnim(int cAnimNum, int playRate) { if (playRate < 0) { // Reverse direction // Count number of frames - while (cObj._sequences[frames] && frames < MAX_FRAME) + while (frames < MAX_FRAME && cObj._sequences[frames]) ++frames; } else { // Forward direction |