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

No functional change
This commit is contained in:
FauziAkram
2025-12-21 15:22:06 +01:00
committed by Disservin
parent c109a88ebe
commit 5edfabd070
5 changed files with 5 additions and 11 deletions
+1 -7
View File
@@ -699,18 +699,12 @@ Value Search::Worker::search(
ss->ttPv = excludedMove ? ss->ttPv : PvNode || (ttHit && ttData.is_pv);
ttCapture = ttData.move && pos.capture_stage(ttData.move);
// At this point, if excluded, skip straight to step 6, static eval. However,
// to save indentation, we list the condition in all code between here and there.
// Step 6. Static evaluation of the position
Value unadjustedStaticEval = VALUE_NONE;
const auto correctionValue = correction_value(*this, pos, ss);
// Skip early pruning when in check
if (ss->inCheck)
{
// Skip early pruning when in check
ss->staticEval = eval = (ss - 2)->staticEval;
improving = false;
}
else if (excludedMove)
unadjustedStaticEval = eval = ss->staticEval;
else if (ss->ttHit)