diff options
author | Matthew Hoops | 2013-04-28 13:42:50 -0400 |
---|---|---|
committer | Matthew Hoops | 2013-04-28 13:43:17 -0400 |
commit | ee86e671f1c29232d7d1d02841851e43b825d6ac (patch) | |
tree | 5c5faefa02c2017f5bc6dde9a2973b4a1333aec4 /engines/sci/engine/features.cpp | |
parent | 2c5a0008badb2c89d1c3f62f7c8b105b22ed8a19 (diff) | |
download | scummvm-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.cpp | 4 |
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) { |