diff --git a/src/search.cpp b/src/search.cpp index 01155e260..41f650e79 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1041,9 +1041,8 @@ moves_loop: // When in check, search starts here int captHist = captureHistory[movedPiece][move.to_sq()][type_of(capturedPiece)]; // Futility pruning for captures - if (!givesCheck && lmrDepth < 7 && !ss->inCheck) + if (!givesCheck && lmrDepth < 7) { - Value futilityValue = ss->staticEval + 231 + 211 * lmrDepth + PieceValue[capturedPiece] + 130 * captHist / 1024;