diff --git a/OpenRA.Mods.RA/Player/ClassicProductionQueue.cs b/OpenRA.Mods.RA/Player/ClassicProductionQueue.cs index 19f2a39fc7..32b9a4f875 100755 --- a/OpenRA.Mods.RA/Player/ClassicProductionQueue.cs +++ b/OpenRA.Mods.RA/Player/ClassicProductionQueue.cs @@ -107,7 +107,7 @@ namespace OpenRA.Mods.RA .Where(p => p.Trait.Info.Produces.Contains(unit.Traits.Get().Queue)) .Where(p => p.Actor.Owner == self.Owner).ToArray(); - var speedModifier = Math.Min(selfsameBuildings.Count(), Info.BuildTimeSpeedReduction.Length) - 1; + var speedModifier = selfsameBuildings.Count().Clamp(1, Info.BuildTimeSpeedReduction.Length) - 1; time = (time * Info.BuildTimeSpeedReduction[speedModifier]) / 100; }