From f9a2d091e9d3174b767221ce2f1379a6e86e80d0 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 24 May 2015 21:06:21 -0400 Subject: [PATCH] SHERLOCK: Fix script opcode table lookup --- engines/sherlock/talk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/sherlock/talk.cpp b/engines/sherlock/talk.cpp index 15b64090c7b..8d553d65d09 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: