X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=f99f63beca57fda3d7e3b4780595e85f4d5c2b09;hp=6dcd9f1db794f56f1ab5214e21fcab7587d2b3b0;hb=0b4ea54da999e591284aaeec702b6239ca219b81;hpb=09f1fdf52fe67b500f1a0159da9e53e9e3456679 diff --git a/src/search.cpp b/src/search.cpp index 6dcd9f1d..f99f63be 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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; }