diff options
Diffstat (limited to 'engines/titanic/game')
-rw-r--r-- | engines/titanic/game/chev_code.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/game/chev_code.cpp b/engines/titanic/game/chev_code.cpp index 9381e1563a..119d82efc0 100644 --- a/engines/titanic/game/chev_code.cpp +++ b/engines/titanic/game/chev_code.cpp @@ -94,8 +94,8 @@ bool CChevCode::SetChevFloorBits(CSetChevFloorBits *msg) { bool CChevCode::SetChevRoomBits(CSetChevRoomBits *msg) { _chevCode &= ~0xff; - if (msg->_roomNum > 0 && msg->_roomNum < 128) - _chevCode |= msg->_roomNum * 2; + if (msg->_roomFlags > 0 && msg->_roomFlags < 128) + _chevCode |= msg->_roomFlags * 2; return true; } |