diff options
author | Willem Jan Palenstijn | 2010-08-25 09:02:43 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2010-08-25 09:02:43 +0000 |
commit | b2ebb62e117e50cb52db64983b5093b2b256867e (patch) | |
tree | 46b58ae06153765a26de1f9016c073662b28757f /engines/sci | |
parent | 3e4f6b4a2409512eed7d0ef048b7d6adb0ea3715 (diff) | |
download | scummvm-rg350-b2ebb62e117e50cb52db64983b5093b2b256867e.tar.gz scummvm-rg350-b2ebb62e117e50cb52db64983b5093b2b256867e.tar.bz2 scummvm-rg350-b2ebb62e117e50cb52db64983b5093b2b256867e.zip |
SCI: Make assert stricter.
(Thanks to fuzzie.)
svn-id: r52376
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/engine/vm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp index b46e5ab37e..11b508e454 100644 --- a/engines/sci/engine/vm.cpp +++ b/engines/sci/engine/vm.cpp @@ -817,7 +817,7 @@ int readPMachineInstruction(const byte *src, byte &extOpcode, int16 opparams[4]) for (int i = 0; g_opcode_formats[opcode][i]; ++i) { //printf("Opcode: 0x%x, Opnumber: 0x%x, temp: %d\n", opcode, opcode, temp); - assert(i < 4); + assert(i < 3); switch (g_opcode_formats[opcode][i]) { case Script_Byte: |