Fix McvExpansionManagerBotModule on CheckCurrentLocation mode.

This commit is contained in:
dnqbob
2025-10-29 12:28:11 +08:00
committed by Gustas Kažukauskas
parent 70243850b1
commit bb2a44705f

View File

@@ -109,7 +109,7 @@ namespace OpenRA.Mods.Common.Traits
IBotRequestUnitProduction[] requestUnitProduction; IBotRequestUnitProduction[] requestUnitProduction;
IBotSuggestRefineryProduction[] suggestRefineryProduction; IBotSuggestRefineryProduction[] suggestRefineryProduction;
readonly Dictionary<Actor, CPos> activeMCVs = []; readonly Dictionary<Actor, CPos?> activeMCVs = [];
PathFinder pathfinder; PathFinder pathfinder;
ResourceMapBotModule resourceMapModule; ResourceMapBotModule resourceMapModule;
@@ -667,7 +667,7 @@ namespace OpenRA.Mods.Common.Traits
if (desiredLocation == null) if (desiredLocation == null)
return; return;
activeMCVs[mcv] = checkloc.Value; activeMCVs[mcv] = checkloc;
if (resLoc != null) if (resLoc != null)
{ {
foreach (var srp in suggestRefineryProduction) foreach (var srp in suggestRefineryProduction)