]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Update bestValue when futility pruning (2)
[stockfish] / src / search.cpp
index 6dcd9f1db794f56f1ab5214e21fcab7587d2b3b0..f99f63beca57fda3d7e3b4780595e85f4d5c2b09 100644 (file)
@@ -879,9 +879,14 @@ split_point_start: // At split points actual search starts from here
 
           if (futilityValue < beta)
           {
+              bestValue = std::max(bestValue, futilityValue);
+
               if (SpNode)
+              {
                   splitPoint->mutex.lock();
-
+                  if (bestValue > splitPoint->bestValue)
+                      splitPoint->bestValue = bestValue;
+              }
               continue;
           }