X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=c98c3334edb97f0a406b62fa864d6c06e4156b2a;hp=1db84c7e8522b12a488c9a4339e88f93fbad879e;hb=c94145b65c21bdca71f1a8248dee8d19d974f555;hpb=1c0c4db6775fae5a8b785630f4fd406c235880d9 diff --git a/src/search.cpp b/src/search.cpp index 1db84c7e..c98c3334 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -805,7 +805,7 @@ namespace { { Depth d = depth - 2 * ONE_PLY - (PvNode ? DEPTH_ZERO : depth / 4); ss->skipEarlyPruning = true; - search(pos, ss, alpha, beta, d, true); + search(pos, ss, alpha, beta, d, cutNode); ss->skipEarlyPruning = false; tte = TT.probe(posKey, ttHit); @@ -823,7 +823,7 @@ moves_loop: // When in check search starts from here CheckInfo ci(pos); value = bestValue; // Workaround a bogus 'uninitialized' warning under gcc improving = ss->staticEval >= (ss-2)->staticEval - || ss->staticEval == VALUE_NONE + /* || ss->staticEval == VALUE_NONE Already implicit in the previous condition */ ||(ss-2)->staticEval == VALUE_NONE; singularExtensionNode = !rootNode