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