aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo
diff options
context:
space:
mode:
authorPaul Gilbert2015-08-09 08:08:03 -0400
committerPaul Gilbert2015-08-09 08:08:03 -0400
commitd5af7b73ec1321a2557eed01e60f0753d9716285 (patch)
treed7e8bb3d53f4e9ed574ea70270388fb832a68667 /engines/sherlock/tattoo
parent41e1320d83b4333cbf4353790f1a0c05bd6deecc (diff)
downloadscummvm-rg350-d5af7b73ec1321a2557eed01e60f0753d9716285.tar.gz
scummvm-rg350-d5af7b73ec1321a2557eed01e60f0753d9716285.tar.bz2
scummvm-rg350-d5af7b73ec1321a2557eed01e60f0753d9716285.zip
SHERLOCK: RT: Fix drawing last frame of animations
Diffstat (limited to 'engines/sherlock/tattoo')
-rw-r--r--engines/sherlock/tattoo/tattoo_scene.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sherlock/tattoo/tattoo_scene.cpp b/engines/sherlock/tattoo/tattoo_scene.cpp
index 20e495bb01..e249e0eaac 100644
--- a/engines/sherlock/tattoo/tattoo_scene.cpp
+++ b/engines/sherlock/tattoo/tattoo_scene.cpp
@@ -663,9 +663,10 @@ int TattooScene::startCAnim(int cAnimNum, int playRate) {
_activeCAnim.load(animStream, _compressed);
- while (_activeCAnim.active() && !_vm->shouldQuit()) {
+ while (!_vm->shouldQuit()) {
// Get the next frame
- _activeCAnim.getNextFrame();
+ if (!_activeCAnim.getNextFrame())
+ break;
// Draw the frame
doBgAnim();