]> git.sesse.net Git - stockfish/commitdiff
Clean up after "Simplify away complexity in evaluation"
authorperegrineshahin <peregrineshahin@gmail.com>
Wed, 3 May 2023 11:11:55 +0000 (14:11 +0300)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sun, 7 May 2023 20:31:03 +0000 (22:31 +0200)
closes https://github.com/official-stockfish/Stockfish/pull/4555

No functional change.

src/search.cpp

index a1f916d0515c78797b2ea52aefa482f76f4d3235..8d9dc04fc486073697588e2a0a8b48b3be58dbf1 100644 (file)
@@ -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