aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-04-26 00:38:19 -0500
committerPaul Gilbert2015-04-26 00:38:19 -0500
commit15a4a942bb6ed708b2ea15bcbb33da66cae292ac (patch)
treef0332d4f961d1f500ba1273948a0bc085b22107f
parenta95170d243df415e58b93e46bf9e23b068729954 (diff)
downloadscummvm-rg350-15a4a942bb6ed708b2ea15bcbb33da66cae292ac.tar.gz
scummvm-rg350-15a4a942bb6ed708b2ea15bcbb33da66cae292ac.tar.bz2
scummvm-rg350-15a4a942bb6ed708b2ea15bcbb33da66cae292ac.zip
SHERLOCK: Fix RUN_CANIMATION talk opcode
-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;