]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Extend checks only if SEE is non-negative
[stockfish] / src / search.cpp
index af32165c656d18ed96ba8367a5979312f5d039af..693bea940548f31d975db84c428d2b8273819c8a 100644 (file)
@@ -1948,7 +1948,7 @@ namespace {
 
     if (*dangerous)
     {
 
     if (*dangerous)
     {
-        if (moveIsCheck)
+        if (moveIsCheck && pos.see_sign(m)>= 0)
             result += CheckExtension[PvNode];
 
         if (singleEvasion)
             result += CheckExtension[PvNode];
 
         if (singleEvasion)