aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-06-30 00:11:40 +0200
committerEugene Sandulenko2019-09-03 17:17:05 +0200
commitba6ca58d3ba91626a9350adca7af60158334ad39 (patch)
tree5eb05c8cc99a1be1fa78fe372e23902292c741cf
parent709f5751906b5eaec85b911dd76ade78a2b07074 (diff)
downloadscummvm-rg350-ba6ca58d3ba91626a9350adca7af60158334ad39.tar.gz
scummvm-rg350-ba6ca58d3ba91626a9350adca7af60158334ad39.tar.bz2
scummvm-rg350-ba6ca58d3ba91626a9350adca7af60158334ad39.zip
HDB: Fix legalMove() check
-rw-r--r--engines/hdb/ai-funcs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp
index 36e663f59c..4671b1edc2 100644
--- a/engines/hdb/ai-funcs.cpp
+++ b/engines/hdb/ai-funcs.cpp
@@ -1858,7 +1858,7 @@ AIEntity *AI::legalMove(int tileX, int tileY, int level, int *result) {
} else if (fgFlags & kFlagGrating) {
*result = 1;
return hit;
- } else if (fgFlags & kFlagSolid) {
+ } else if (bgFlags & kFlagSolid) {
*result = 0;
return hit;
}