X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsearch.cpp;h=f5552e7887dcd4e03a3a243a747193917e0cbece;hb=426f55b78d8d83ad779772dc46ad4f645177c4c4;hp=4592ac084ebc56d60a59b83415167bd2f75af146;hpb=b638f6b0354ea124dc80e5e38189474d34141e2d;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index 4592ac08..f5552e78 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1379,12 +1379,12 @@ namespace { if (nullValue >= beta) { if (depth < 6 * OnePly) - return beta; + return nullValue; // Do zugzwang verification search Value v = search(pos, ss, beta, depth-5*OnePly, ply, false, threadID); if (v >= beta) - return beta; + return nullValue; } else { // The null move failed low, which means that we may be faced with // some kind of threat. If the previous move was reduced, check if