From 65a5fae4d33e7c420af638128cd2f9c0d400920f Mon Sep 17 00:00:00 2001 From: Caball009 <82909616+Caball009@users.noreply.github.com> Date: Sun, 13 Sep 2026 18:46:47 +0200 Subject: [PATCH] bugfix(pathfinder): Restore Generals retail compatibility after crash fix changes to Pathfinder::findAttackPath. --- Core/GameEngine/Source/GameLogic/AI/AIPathfind.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Core/GameEngine/Source/GameLogic/AI/AIPathfind.cpp b/Core/GameEngine/Source/GameLogic/AI/AIPathfind.cpp index 60d1add770b..1cefbe300e6 100644 --- a/Core/GameEngine/Source/GameLogic/AI/AIPathfind.cpp +++ b/Core/GameEngine/Source/GameLogic/AI/AIPathfind.cpp @@ -11021,6 +11021,10 @@ Path *Pathfinder::findAttackPath( const Object *obj, const LocomotorSet& locomot Path *path = buildActualPath( obj, locomotorSet.getValidSurfaces(), obj->getPosition(), parentCell, centerInCell, false); #if RETAIL_COMPATIBLE_PATHFINDING if (!s_useFixedPathfinding) { +#if RTS_GENERALS + parentCell->releaseInfo(); +#endif + if (goalCell->hasInfo() && !goalCell->getClosed() && !goalCell->getOpen()) { goalCell->releaseInfo(); }