diff --git a/OpenRA.Mods.Common/Traits/BotModules/SupportPowerBotModule.cs b/OpenRA.Mods.Common/Traits/BotModules/SupportPowerBotModule.cs index 0743eefda5..1b6a75262f 100644 --- a/OpenRA.Mods.Common/Traits/BotModules/SupportPowerBotModule.cs +++ b/OpenRA.Mods.Common/Traits/BotModules/SupportPowerBotModule.cs @@ -208,8 +208,14 @@ namespace OpenRA.Mods.Common.Traits var waitingPowersNode = data.FirstOrDefault(n => n.Key == "WaitingPowers"); if (waitingPowersNode != null) + { foreach (var n in waitingPowersNode.Value.Nodes) - waitingPowers[supportPowerManager.Powers[n.Key]] = FieldLoader.GetValue("WaitingPowers", n.Value.Value); + { + SupportPowerInstance instance; + if (supportPowerManager.Powers.TryGetValue(n.Key, out instance)) + waitingPowers[instance] = FieldLoader.GetValue("WaitingPowers", n.Value.Value); + } + } } } }