diff --git a/OpenRA.Mods.RA/Player/TechTree.cs b/OpenRA.Mods.RA/Player/TechTree.cs index 4e85d0e8bc..1b37cce524 100755 --- a/OpenRA.Mods.RA/Player/TechTree.cs +++ b/OpenRA.Mods.RA/Player/TechTree.cs @@ -113,7 +113,11 @@ namespace OpenRA.Mods.RA public void Update(Cache> buildables) { - var hasReachedBuildLimit = buildLimit > 0 && buildables[Key].Count >= buildLimit; + var hasReachedBuildLimit = false; + + if(buildables.Keys.Contains(Key)) + hasReachedBuildLimit = buildLimit > 0 && buildables[Key].Count >= buildLimit; + var nowHasPrerequisites = HasPrerequisites(buildables) && !hasReachedBuildLimit; if (nowHasPrerequisites && !hasPrerequisites)