diff --git a/src/search.cpp b/src/search.cpp index 3a161fee..ab8825f8 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1028,8 +1028,7 @@ moves_loop: // When in check, search starts here lmrDepth += history / 3459; - Value futilityValue = - ss->staticEval + (bestValue < ss->staticEval - 47 ? 137 : 47) + 142 * lmrDepth; + Value futilityValue = ss->staticEval + (bestMove ? 47 : 137) + 142 * lmrDepth; // Futility pruning: parent node if (!ss->inCheck && lmrDepth < 12 && futilityValue <= alpha)