mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
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 <mcostalba@gmail.com>
This commit is contained in:
parent
9c428afb6d
commit
8df816f869
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue