diff --git a/Yafc.Model/Model/ModuleFillerParameters.cs b/Yafc.Model/Model/ModuleFillerParameters.cs index 4176b36e..07813ff4 100644 --- a/Yafc.Model/Model/ModuleFillerParameters.cs +++ b/Yafc.Model/Model/ModuleFillerParameters.cs @@ -152,7 +152,7 @@ The payback time is calculated as the module cost divided by the economy gain pe effectivityEconomy = 0f; } - float bestEconomy = float.NegativeInfinity; + float bestEconomy = 0f; Module? usedModule = null; foreach (var module in recipe.modules) { if (module.IsAccessibleWithCurrentMilestones() && entity.CanAcceptModule(module.moduleSpecification)) {