diff --git a/src/search.cpp b/src/search.cpp index 5de950eb..8ace674d 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1463,9 +1463,7 @@ moves_loop: // When in check, search starts here // Step 4. Static evaluation of the position if (ss->inCheck) - { bestValue = futilityBase = -VALUE_INFINITE; - } else { if (ss->ttHit) @@ -1480,11 +1478,9 @@ moves_loop: // When in check, search starts here bestValue = ttValue; } else - { // In case of null move search use previous static eval with a different sign ss->staticEval = bestValue = (ss-1)->currentMove != MOVE_NULL ? evaluate(pos) : -(ss-1)->staticEval; - } // Stand pat. Return immediately if static value is at least beta if (bestValue >= beta)