From ba6ca58d3ba91626a9350adca7af60158334ad39 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 30 Jun 2019 00:11:40 +0200 Subject: HDB: Fix legalMove() check --- engines/hdb/ai-funcs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3