X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=f4c77847d25bb814956c3b110741e9229603b846;hp=d61fca1bca5a3d5d91749f9ad2f1a1966f1349e4;hb=d5ba8e827d840995e79435986a8a7a2a45626eca;hpb=4f6aa152284e80094467ea0051bb58b004042555 diff --git a/src/search.cpp b/src/search.cpp index d61fca1b..f4c77847 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -969,7 +969,7 @@ moves_loop: // When in check search starts from here && cmh[pos.moved_piece(move)][to_sq(move)] < VALUE_ZERO) continue; - predictedDepth = newDepth - reduction(improving, depth, moveCount); + predictedDepth = std::max(newDepth - reduction(improving, depth, moveCount), DEPTH_ZERO); // Futility pruning: parent node if (predictedDepth < 7 * ONE_PLY)