From 8df816f86936ead437c0f2c54fd697d1c4627bd5 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Fri, 15 May 2009 09:39:36 +0200 Subject: [PATCH] Fix broken multi-pv with aspiration window search Aspiration window search must be disabled for multi-pv case. We missed one point where aspiration window should be disabled in this case. Patch from Joona, with a little added edit by me. Signed-off-by: Marco Costalba --- src/search.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/search.cpp b/src/search.cpp index a6db7a3e..30abecd0 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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 -- 2.39.2