diff --git a/src/search.cpp b/src/search.cpp index 653cbf33..f58def60 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -979,7 +979,7 @@ moves_loop: // When in check, search starts here moveCountPruning = moveCount >= futility_move_count(improving, depth); // Reduced depth of the next LMR search - int lmrDepth = std::max(newDepth - r, 0); + int lmrDepth = newDepth - r; if ( capture || givesCheck)