aboutsummaryrefslogtreecommitdiff
path: root/engines/access/amazon
diff options
context:
space:
mode:
Diffstat (limited to 'engines/access/amazon')
-rw-r--r--engines/access/amazon/amazon_scripts.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/access/amazon/amazon_scripts.cpp b/engines/access/amazon/amazon_scripts.cpp
index 52c142a415..ce9a3d5c5c 100644
--- a/engines/access/amazon/amazon_scripts.cpp
+++ b/engines/access/amazon/amazon_scripts.cpp
@@ -481,8 +481,8 @@ void AmazonScripts::cmdChapter() {
}
void AmazonScripts::cmdSetHelp() {
- int arrayId = (_data->readUint16LE() && 0xFF) - 1;
- int helpId = _data->readUint16LE() && 0xFF;
+ int arrayId = (_data->readUint16LE() & 0xFF) - 1;
+ int helpId = _data->readUint16LE() & 0xFF;
byte *help = _game->_helpTbl[arrayId];
help[helpId] = 1;