diff --git a/src/search.cpp b/src/search.cpp index b686808f3..e3cb1cdb8 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1412,7 +1412,7 @@ moves_loop: // When in check, search starts here assert(moveCount || !ss->inCheck || excludedMove || !MoveList(pos).size()); // Adjust best value for fail high cases - if (bestValue >= beta && !is_decisive(bestValue) && !is_decisive(beta) && !is_decisive(alpha)) + if (bestValue >= beta && !is_decisive(bestValue) && !is_decisive(alpha)) bestValue = (bestValue * depth + beta) / (depth + 1); if (!moveCount)