diff --git a/src/search.cpp b/src/search.cpp index 10e24482..14f235b5 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1147,7 +1147,7 @@ moves_loop: // When in check, search starts here int corrValAdj2 = std::abs(correctionValue) / 249757; int doubleMargin = -4 + 244 * PvNode - 206 * !ttCapture - corrValAdj1 - 997 * ttMoveHistory / 131072 - - (ss->ply * 2 > thisThread->rootDepth * 3) * 47; + - (ss->ply > thisThread->rootDepth) * 47; int tripleMargin = 84 + 269 * PvNode - 253 * !ttCapture + 91 * ss->ttPv - corrValAdj2 - (ss->ply * 2 > thisThread->rootDepth * 3) * 54;