Skip to content

Commit bfa3bbf

Browse files
authored
bugfix(pathfinder): Restore Generals retail compatibility after crash fix changes to Pathfinder::findAttackPath (#3289)
1 parent ebb78fa commit bfa3bbf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Core/GameEngine/Source/GameLogic/AI/AIPathfind.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11021,6 +11021,10 @@ Path *Pathfinder::findAttackPath( const Object *obj, const LocomotorSet& locomot
1102111021
Path *path = buildActualPath( obj, locomotorSet.getValidSurfaces(), obj->getPosition(), parentCell, centerInCell, false);
1102211022
#if RETAIL_COMPATIBLE_PATHFINDING
1102311023
if (!s_useFixedPathfinding) {
11024+
#if RTS_GENERALS
11025+
parentCell->releaseInfo();
11026+
#endif
11027+
1102411028
if (goalCell->hasInfo() && !goalCell->getClosed() && !goalCell->getOpen()) {
1102511029
goalCell->releaseInfo();
1102611030
}

0 commit comments

Comments
 (0)