X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=88af08404d7cdae7c44d381f499763fd9877c119;hp=cb16798dc427fcc30162a9f346c0402aac680a95;hb=c80d52c845357db880817d6ed91d02986b5d5384;hpb=a6d6a2c2fad093a47b575ee4cfb8d346ba037fb3 diff --git a/src/search.cpp b/src/search.cpp index cb16798d..88af0840 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -82,7 +82,7 @@ namespace { // History and stats update bonus, based on depth Value stat_bonus(Depth depth) { int d = depth / ONE_PLY ; - return Value(d * d + 2 * d - 2); + return d > 17 ? VALUE_ZERO : Value(d * d + 2 * d - 2); } // Skill structure is used to implement strength limit