Skip to content

Commit

Permalink
SHERLOCK: Fix RUN_CANIMATION talk opcode
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Apr 26, 2015
1 parent a95170d commit 15a4a94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/sherlock/talk.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 15a4a94

Please sign in to comment.