aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/features.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2013-04-28 13:42:50 -0400
committerMatthew Hoops2013-04-28 13:43:17 -0400
commitee86e671f1c29232d7d1d02841851e43b825d6ac (patch)
tree5c5faefa02c2017f5bc6dde9a2973b4a1333aec4 /engines/sci/engine/features.cpp
parent2c5a0008badb2c89d1c3f62f7c8b105b22ed8a19 (diff)
downloadscummvm-rg350-ee86e671f1c29232d7d1d02841851e43b825d6ac.tar.gz
scummvm-rg350-ee86e671f1c29232d7d1d02841851e43b825d6ac.tar.bz2
scummvm-rg350-ee86e671f1c29232d7d1d02841851e43b825d6ac.zip
SCI: Fix Phantasmagoria Mac's kDoSound
Diffstat (limited to 'engines/sci/engine/features.cpp')
-rw-r--r--engines/sci/engine/features.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sci/engine/features.cpp b/engines/sci/engine/features.cpp
index 49e2bfc79f..6005ac50be 100644
--- a/engines/sci/engine/features.cpp
+++ b/engines/sci/engine/features.cpp
@@ -496,7 +496,9 @@ bool GameFeatures::autoDetectSci21KernelType() {
opcode = extOpcode >> 1;
// Check for end of script
- if (opcode == op_ret || offset >= script->getBufSize())
+ // We don't check for op_ret here because the Phantasmagoria Mac script
+ // has an op_ret early on in its script (controlled by a branch).
+ if (offset >= script->getBufSize())
break;
if (opcode == op_callk) {