]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Fix Singular extension condition to handle mate scores
[stockfish] / src / search.cpp
index 28fecf87c979cf26312c3c9ced4e277ee93a7129..8f9a369ae23d86a9a4d62d046a8f35ea4c9f6013 100644 (file)
@@ -700,7 +700,8 @@ moves_loop: // When in check and at SpNode search starts from here
                            &&  depth >= 8 * ONE_PLY
                            &&  abs(beta) < VALUE_KNOWN_WIN
                            &&  ttMove != MOVE_NONE
-                           &&  ttValue != VALUE_NONE
+                       /*  &&  ttValue != VALUE_NONE Already implicit in the next condition */
+                           &&  abs(ttValue) < VALUE_KNOWN_WIN
                            && !excludedMove // Recursive singular search is not allowed
                            && (tte->bound() & BOUND_LOWER)
                            &&  tte->depth() >= depth - 3 * ONE_PLY;