X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=1e70be60a7f43adb774e2d8af4d77e62d881aa43;hp=06262131f40bfe895e891540c6985f2405504285;hb=7b4c9852e1421ebe6ec326c38f04ad575ad91053;hpb=d5f883ab29d43b35746ff605cf13c3722df56041 diff --git a/src/search.cpp b/src/search.cpp index 06262131..1e70be60 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -908,8 +908,7 @@ moves_loop: // When in check search starts from here } // Reduced depth of the next LMR search - int mch = std::max(1, moveCount - (ss-1)->moveCount / 16); - int lmrDepth = std::max(newDepth - reduction(improving, depth, mch), DEPTH_ZERO) / ONE_PLY; + int lmrDepth = std::max(newDepth - reduction(improving, depth, moveCount), DEPTH_ZERO) / ONE_PLY; // Countermoves based pruning if ( lmrDepth < 3