remove non-functional else

since we break out of the loop in the other branch

closes https://github.com/official-stockfish/Stockfish/pull/6116

no functional change
This commit is contained in:
Shawn Xu
2025-05-31 18:24:19 -07:00
committed by Joost VandeVondele
parent 9ac756695e
commit 5337edfdb6

View File

@@ -1380,8 +1380,7 @@ moves_loop: // When in check, search starts here
assert(value >= beta); // Fail high
break;
}
else
{
// Reduce other moves if we have found at least one score improvement
if (depth > 2 && depth < 16 && !is_decisive(value))
depth -= 2;
@@ -1390,7 +1389,6 @@ moves_loop: // When in check, search starts here
alpha = value; // Update alpha! Always alpha < beta
}
}
}
// If the move is worse than some previously searched move,
// remember it, to update its stats later.