diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/access/scripts.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/access/scripts.cpp b/engines/access/scripts.cpp index 8b664520d4..79d74694a1 100644 --- a/engines/access/scripts.cpp +++ b/engines/access/scripts.cpp @@ -98,7 +98,9 @@ int Scripts::executeScript() { while ((_scriptCommand = _data->readByte()) == SCRIPT_START_BYTE) _data->skip(2); - assert(_scriptCommand >= 0x80); + if (_scriptCommand < 0x80) + error("Unexpected opcode value %d", _scriptCommand); + executeCommand(_scriptCommand - 0x80); } while (!_endFlag && !_vm->shouldQuitOrRestart()); |