aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock
diff options
context:
space:
mode:
authorPaul Gilbert2015-10-16 19:36:23 -0400
committerPaul Gilbert2015-10-16 19:36:23 -0400
commitd4774d1cb21507c66a438746619c69a11ce321d0 (patch)
tree44fcadfe6935e15b401889e28fb411bf514d5d0b /engines/sherlock
parent7f9a2c5c82dc68ff8f6973ec7463fac2034c40bd (diff)
downloadscummvm-rg350-d4774d1cb21507c66a438746619c69a11ce321d0.tar.gz
scummvm-rg350-d4774d1cb21507c66a438746619c69a11ce321d0.tar.bz2
scummvm-rg350-d4774d1cb21507c66a438746619c69a11ce321d0.zip
SHERLOCK: RT: Fix crash skipping intro when anim is active
Diffstat (limited to 'engines/sherlock')
-rw-r--r--engines/sherlock/image_file.cpp1
-rw-r--r--engines/sherlock/tattoo/tattoo_scene.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/engines/sherlock/image_file.cpp b/engines/sherlock/image_file.cpp
index a1636e9195..971980a2ac 100644
--- a/engines/sherlock/image_file.cpp
+++ b/engines/sherlock/image_file.cpp
@@ -1054,6 +1054,7 @@ void StreamingImageFile::close() {
bool StreamingImageFile::getNextFrame() {
// Don't proceed if we're already at the end of the stream
+ assert(_stream);
if (_stream->pos() >= _stream->size()) {
_active = false;
return false;
diff --git a/engines/sherlock/tattoo/tattoo_scene.cpp b/engines/sherlock/tattoo/tattoo_scene.cpp
index aec80ba34f..96c7764a85 100644
--- a/engines/sherlock/tattoo/tattoo_scene.cpp
+++ b/engines/sherlock/tattoo/tattoo_scene.cpp
@@ -690,6 +690,7 @@ int TattooScene::startCAnim(int cAnimNum, int playRate) {
_goToScene = STARTING_GAME_SCENE;
talk._talkToAbort = true;
_activeCAnim.close();
+ break;
}
}
}