X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=76d05001566304798c301faa822494aee03e112d;hp=4e42ca310536eeefa4bbcceba85ea3503ef3803c;hb=1d7a3f26e0ac0d0dabe91806b236f4f411e6344a;hpb=a0005ba45f7d5c97a096b79065c0b83ae3d81afa diff --git a/src/search.cpp b/src/search.cpp index 4e42ca31..76d05001 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -2717,7 +2717,7 @@ namespace { // red = baseReduction + ln(moveCount) * ln(depth / 2) / reductionInhibitor; // logLimit = depth > OnePly ? (1.0 - baseReduction) * reductionInhibitor / ln(depth / 2) : 1000.0; - gradient = ln(depth / 2) / reductionInhibitor; + gradient = depth > OnePly ? ln(depth / 2) / reductionInhibitor : 0.0; }