SCI: Make assert stricter.

(Thanks to fuzzie.)

svn-id: r52376
This commit is contained in:
Willem Jan Palenstijn 2010-08-25 09:02:43 +00:00
parent 3e4f6b4a24
commit b2ebb62e11

@ -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: