From: Marco Costalba Date: Sat, 3 Nov 2012 16:06:49 +0000 (+0100) Subject: Correctly fix "break from split" patch X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=a87831230d72b8f849acdef011cee8c835bcf9db Correctly fix "break from split" patch In case split cut-offs we return with still some moves to go but we really want to break out from the loop now. No functional change. --- diff --git a/src/search.cpp b/src/search.cpp index 03d05796..253311ae 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1016,8 +1016,12 @@ split_point_start: // At split points actual search starts from here && depth >= Threads.min_split_depth() && bestValue < beta && Threads.available_slave_exists(thisThread)) + { bestValue = Threads.split(pos, ss, alpha, beta, bestValue, &bestMove, depth, threatMove, moveCount, mp, NT); + if (bestValue >= beta) + break; + } } if (SpNode)