]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Fix broken multi-pv with aspiration window search
[stockfish] / src / search.cpp
index a6db7a3ef8883b41701200f7d5e0124bb33be5ea..30abecd0ed563df77dd681af6f7429e1654b7bfc 100644 (file)
@@ -890,6 +890,10 @@ namespace {
 
         if (i < MultiPV)
         {
+            // Aspiration window is disabled in multi-pv case
+            if (MultiPV > 1)
+                alpha = -VALUE_INFINITE;
+
             value = -search_pv(pos, ss, -beta, -alpha, newDepth, 1, 0);
             // If the value has dropped a lot compared to the last iteration,
             // set the boolean variable Problem to true. This variable is used