X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=4ac944029fa8d1b02bf2086b545560e8b79808e2;hb=c1f4000426dd799cfac97298c539e618909c057f;hp=b43ebd02ab848ae4f2675bd0eaba637b8f9532b8;hpb=22715259a04497743afe7e33f5cf1e3b13bb097e;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index b43ebd02..4ac94402 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -958,7 +958,7 @@ split_point_start: // At split points actual search starts from here // ran out of time. In this case, the return value of the search cannot // be trusted, and we don't update the best move and/or PV. if (Signals.stop || thisThread->cutoff_occurred()) - return bestValue; + return value; // To avoid returning VALUE_INFINITE if (RootNode) {