X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=0ce836f777797ac0d4b785cad8a911261a8c064c;hp=da306a1a6150a487b3f6a734375e12023fd55862;hb=9f0d5241bfcf454d4b21594b0af239bbe5990b84;hpb=44643c277007e3902586418541c0c22ff110fde1 diff --git a/src/search.cpp b/src/search.cpp index da306a1a..0ce836f7 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -831,7 +831,8 @@ moves_loop: // When in check and at SpNode search starts from here newDepth = depth - ONE_PLY + extension; // Step 13. Pruning at shallow depth - if ( !captureOrPromotion + if ( !RootNode + && !captureOrPromotion && !inCheck && !dangerous && bestValue > VALUE_MATED_IN_MAX_PLY)