From 712a18d0500dd51dc113ebaf5ac420ceaa8e456c Mon Sep 17 00:00:00 2001 From: Strangerke Date: Fri, 12 Dec 2014 22:33:46 +0100 Subject: ACCESS: Fix compilation errors reported by Criezy --- engines/access/amazon/amazon_scripts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/access/amazon') 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; -- cgit v1.2.3