aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2016-01-03 14:05:23 +0100
committerEugene Sandulenko2016-01-03 14:05:23 +0100
commit4e14c952d81a1fdbe6c83bed4448cb0235f5d0cd (patch)
tree34590381222ba17e6fc8382ff22c399d96ffaefe /engines
parenta4251c58b54ff70bb9faefb1c07dbcebd1816acd (diff)
downloadscummvm-rg350-4e14c952d81a1fdbe6c83bed4448cb0235f5d0cd.tar.gz
scummvm-rg350-4e14c952d81a1fdbe6c83bed4448cb0235f5d0cd.tar.bz2
scummvm-rg350-4e14c952d81a1fdbe6c83bed4448cb0235f5d0cd.zip
WAGE: Fixed processMove operands
Diffstat (limited to 'engines')
-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')