Skip to content

Commit 463cd25

Browse files
committed
fix(pathfinder): Fix compilation in Pathfinder with EXPAND_ONE_CELL
1 parent d61ce1f commit 463cd25

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Generals/Code/GameEngine/Source/GameLogic/AI/AIPathfind.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3868,8 +3868,8 @@ void Pathfinder::internal_classifyObjectFootprint( Object *obj, Bool insert )
38683868
if (l<m_extent.lo.y || l> m_extent.hi.y) continue;
38693869
if ((k==i) && (l==j)) continue;
38703870
if ((k!=i) && (l!=j)) continue;
3871-
if (m_map[k][l].getType()!=PathfindCell::CELL_CLEAR)) {
3872-
objectAdjacent = true;
3871+
if (m_map[k][l].getType()!=PathfindCell::CELL_CLEAR) {
3872+
obstacleAdjacent = true;
38733873
break;
38743874
}
38753875

GeneralsMD/Code/GameEngine/Source/GameLogic/AI/AIPathfind.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4360,8 +4360,8 @@ void Pathfinder::internal_classifyObjectFootprint( Object *obj, Bool insert )
43604360
if (l<m_extent.lo.y || l> m_extent.hi.y) continue;
43614361
if ((k==i) && (l==j)) continue;
43624362
if ((k!=i) && (l!=j)) continue;
4363-
if (m_map[k][l].getType()!=PathfindCell::CELL_CLEAR)) {
4364-
objectAdjacent = true;
4363+
if (m_map[k][l].getType()!=PathfindCell::CELL_CLEAR) {
4364+
obstacleAdjacent = true;
43654365
break;
43664366
}
43674367

0 commit comments

Comments
 (0)