aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/wage/script.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/wage/script.cpp b/engines/wage/script.cpp
index 1473029aa5..9bd9397904 100644
--- a/engines/wage/script.cpp
+++ b/engines/wage/script.cpp
@@ -853,9 +853,15 @@ void Script::takeObj(Obj *obj) {
void Script::processMove() {
Operand *what = readOperand();
- // TODO check data[index] == 0x8A
+ byte skip = _data->readByte();
+ if (skip != 0x8a)
+ error("Incorrect operator for MOVE: %02x", skip);
+
Operand *to = readOperand();
- // TODO check data[index] == 0xFD
+
+ skip = _data->readByte();
+ if (skip != 0xfd)
+ error("No end for MOVE: %02x", skip);
for (int cmp = 0; comparators[cmp].op != 0; cmp++) {
if (comparators[cmp].op != 'M')