Fix Optimal solver when MaxQuality == 0
This commit is contained in:
+2
-2
@@ -224,8 +224,8 @@ public sealed class Solver : IDisposable
|
||||
Token.ThrowIfCancellationRequested();
|
||||
}
|
||||
|
||||
|
||||
if (solution == null || ExecuteActions(solution).HQPercent != 100)
|
||||
var state = solution != null ? (SimulationState?)ExecuteActions(solution) : null;
|
||||
if (solution == null || state?.Quality != state?.Input.Recipe.MaxQuality)
|
||||
{
|
||||
Raphael.SolverConfig config = new()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user