aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/sherlock/talk.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sherlock/talk.cpp b/engines/sherlock/talk.cpp
index 2ad70dabed..4e7e4de2d0 100644
--- a/engines/sherlock/talk.cpp
+++ b/engines/sherlock/talk.cpp
@@ -1114,7 +1114,8 @@ void Talk::doScript(const Common::String &script) {
case RUN_CANIMATION:
// Save the current point in the script, since it might be intterupted by
// doing bg anims in the next call, so we need to know where to return to
- _scriptCurrentIndex = str - script.c_str();
+ ++str;
+ _scriptCurrentIndex = (str + 1) - script.c_str();
scene.startCAnim((str[0] - 1) & 127, 1 + (str[0] & 128));
if (_talkToAbort)
return;