X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=616d11336eee92595882ce885f2175d114782e81;hb=78e3d2ad78f1835d627ec40b9228e8b7dbb676ef;hp=db9a5a8d01d2a0d729f7e6d390e8995f502b9ffa;hpb=4b2979760f3862700c6a0b8d3ab0f6a6e0a638c0;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index db9a5a8d..616d1133 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1496,7 +1496,7 @@ moves_loop: // When in check, search starts here return bestValue; } - if (PvNode && bestValue > alpha) + if (bestValue > alpha) alpha = bestValue; futilityBase = bestValue + 200; @@ -1608,7 +1608,7 @@ moves_loop: // When in check, search starts here if (PvNode) // Update pv even in fail-high case update_pv(ss->pv, move, (ss+1)->pv); - if (PvNode && value < beta) // Update alpha here! + if (value < beta) // Update alpha here! alpha = value; else break; // Fail high