diff options
Diffstat (limited to 'engines/lilliput/script.cpp')
-rw-r--r-- | engines/lilliput/script.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/lilliput/script.cpp b/engines/lilliput/script.cpp index 10c41ee002..cc78c31d37 100644 --- a/engines/lilliput/script.cpp +++ b/engines/lilliput/script.cpp @@ -1534,10 +1534,10 @@ byte LilliputScript::OC_compareCoords_1() { byte LilliputScript::OC_compareCoords_2() { debugC(1, kDebugScript, "OC_compareCoords_2()"); - int16 index = getValue1(); - index = _currScript->readUint16LE(); + int16 idx1 = getValue1(); + int16 idx2 = _currScript->readUint16LE(); - if (_vm->_enclosureRect[index].contains(_characterTilePos[index])) + if (_vm->_enclosureRect[idx2].contains(_characterTilePos[idx1])) return 1; return 0; } |