diff --git a/src/search.cpp b/src/search.cpp index fb5a2f00..3f882aab 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1001,7 +1001,7 @@ moves_loop: // When in check, search starts here // Futility pruning: parent node (~13 Elo) if (!ss->inCheck && lmrDepth < 15 && futilityValue <= alpha) { - if (bestValue <= futilityValue && abs(bestValue) < VALUE_TB_WIN_IN_MAX_PLY + if (bestValue <= futilityValue && std::abs(bestValue) < VALUE_TB_WIN_IN_MAX_PLY && futilityValue < VALUE_TB_WIN_IN_MAX_PLY) bestValue = (bestValue + futilityValue * 3) / 4; continue;