aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/m4/mads_player.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/m4/mads_player.cpp b/engines/m4/mads_player.cpp
index 5106d2210d..a8b6469771 100644
--- a/engines/m4/mads_player.cpp
+++ b/engines/m4/mads_player.cpp
@@ -634,7 +634,7 @@ int MadsPlayer::scanPath(M4Surface *depthSurface, const Common::Point &srcPos, c
// Outer horizontal movement loop
for (int yIndex = 0; yIndex < yDiff; ++yIndex) {
index += yDiff;
- int v = (*srcP && 0x7F) >> 4;
+ int v = (*srcP & 0x7F) >> 4;
if (v)
return v;
@@ -642,7 +642,7 @@ int MadsPlayer::scanPath(M4Surface *depthSurface, const Common::Point &srcPos, c
while (index >= xDiff) {
index -= xDiff;
- v = (*srcP && 0x7F) >> 4;
+ v = (*srcP & 0x7F) >> 4;
if (v)
return v;