aboutsummaryrefslogtreecommitdiff
path: root/engines/access
diff options
context:
space:
mode:
authorStrangerke2014-12-17 23:05:22 +0100
committerStrangerke2014-12-17 23:05:22 +0100
commit207c4012ad33f7f11b5375c1478ed2f5e13679b9 (patch)
tree60c384b6613ecd0e64f056c05e4c4357bf0c7487 /engines/access
parent240b9dcaeba7f28800df1cd6929ceed4bb3cff33 (diff)
downloadscummvm-rg350-207c4012ad33f7f11b5375c1478ed2f5e13679b9.tar.gz
scummvm-rg350-207c4012ad33f7f11b5375c1478ed2f5e13679b9.tar.bz2
scummvm-rg350-207c4012ad33f7f11b5375c1478ed2f5e13679b9.zip
ACCESS: replace an assert by an error as suggested by LordHoto
Diffstat (limited to 'engines/access')
-rw-r--r--engines/access/scripts.cpp4
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());