X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=f4c77847d25bb814956c3b110741e9229603b846;hp=d61fca1bca5a3d5d91749f9ad2f1a1966f1349e4;hb=744ed85a4dd3f478c4ce26e4257e64bf5c9abbdd;hpb=56dd58e6f9d9073b963ebf2add7da9723eb5cd5a 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)