aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2015-05-24 21:06:21 -0400
committerPaul Gilbert2015-05-24 21:06:21 -0400
commitf9a2d091e9d3174b767221ce2f1379a6e86e80d0 (patch)
tree2201d041fbcddaa3eb23804eea5c3f8609f2e7c8 /engines
parentb4849f21d27a296f0150937a0d833f2ffd1be507 (diff)
downloadscummvm-rg350-f9a2d091e9d3174b767221ce2f1379a6e86e80d0.tar.gz
scummvm-rg350-f9a2d091e9d3174b767221ce2f1379a6e86e80d0.tar.bz2
scummvm-rg350-f9a2d091e9d3174b767221ce2f1379a6e86e80d0.zip
SHERLOCK: Fix script opcode table lookup
Diffstat (limited to 'engines')
-rw-r--r--engines/sherlock/talk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sherlock/talk.cpp b/engines/sherlock/talk.cpp
index 15b64090c7..8d553d65d0 100644
--- a/engines/sherlock/talk.cpp
+++ b/engines/sherlock/talk.cpp
@@ -1164,7 +1164,7 @@ void Talk::doScript(const Common::String &script) {
// Start of comment, so skip over it
while (*str++ != '}')
;
- } else if (_opcodeTable[c]) {
+ } else if (_opcodeTable[c - 128]) {
// Handle control code
switch ((this->*_opcodeTable[c - 128])(str)) {
case RET_EXIT: