diff options
Diffstat (limited to 'engines/access')
-rw-r--r-- | engines/access/room.cpp | 4 | ||||
-rw-r--r-- | engines/access/scripts.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/access/room.cpp b/engines/access/room.cpp index f10ba86a40..fa0c0c4510 100644 --- a/engines/access/room.cpp +++ b/engines/access/room.cpp @@ -199,8 +199,8 @@ void Room::loadRoomData(const byte *roomData) { _vm->_establishFlag = false; if (roomInfo._estIndex != -1) { _vm->_establishFlag = true; - if (_vm->_establishTable[roomInfo._estIndex] != 1) { - _vm->_establishTable[roomInfo._estIndex] = 1; + if (!_vm->_establishTable[roomInfo._estIndex]) { + _vm->_establishTable[roomInfo._estIndex] = true; _vm->establish(0, roomInfo._estIndex); } } diff --git a/engines/access/scripts.cpp b/engines/access/scripts.cpp index 0188457a5a..a74cc7b12e 100644 --- a/engines/access/scripts.cpp +++ b/engines/access/scripts.cpp @@ -572,7 +572,7 @@ void Scripts::cmdSpecial() { int p2 = _data->readUint16LE(); if (_specialFunction == 1) { - if (_vm->_establishTable[p2] == 1) + if (_vm->_establishTable[p2]) return; _vm->_screen->savePalette(); |