From: peregrineshahin Date: Wed, 3 May 2023 11:11:55 +0000 (+0300) Subject: Clean up after "Simplify away complexity in evaluation" X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=28442195c7d168a87221c6f1ae9ac51893427250;p=stockfish Clean up after "Simplify away complexity in evaluation" closes https://github.com/official-stockfish/Stockfish/pull/4555 No functional change. --- diff --git a/src/search.cpp b/src/search.cpp index a1f916d0..8d9dc04f 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -724,11 +724,8 @@ namespace { ss->staticEval = eval = tte->eval(); if (eval == VALUE_NONE) ss->staticEval = eval = evaluate(pos); - else - { - if (PvNode) - Eval::NNUE::hint_common_parent_position(pos); - } + else if (PvNode) + Eval::NNUE::hint_common_parent_position(pos); // ttValue can be used as a better position evaluation (~7 Elo) if ( ttValue != VALUE_NONE