X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=4384b58dd5c89a21ab10d40ccb0de6c88525fc82;hp=f64f55f0a129a4b4292891140ebd9eb1ad818af5;hb=4803d5772c120121dad6bad78cc2b6be5c24fb1f;hpb=738c5595adefe397d8389fb315908e7d2f6ab40c diff --git a/src/search.cpp b/src/search.cpp index f64f55f0..4384b58d 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -837,7 +837,7 @@ moves_loop: // When in check and at SpNode search starts from here ext = ONE_PLY; else if (givesCheck && pos.see_sign(move) >= 0) - ext = inCheck || ss->staticEval < VALUE_ZERO ? ONE_PLY : ONE_PLY / 2; + ext = inCheck || ss->staticEval <= alpha ? ONE_PLY : ONE_PLY / 2; // Singular extension search. If all moves but one fail low on a search of // (alpha-s, beta-s), and just one fails high on (alpha, beta), then that move