LILLIPUT: Fix regression introduced in 56db8c626e

This commit is contained in:
Strangerke 2018-04-26 07:09:57 +02:00
parent beeddc8c7e
commit ef1b0171bf
2 changed files with 6 additions and 6 deletions

View file

@ -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;
}