aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}