X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=cae8a6845626e7db07a3bd82a08332eac6322a04;hp=d6b611a31bb261d3573ea548cc180ec476cd4aed;hb=242a7d9fead561488ca176a4687deef8859918f2;hpb=95b8f3f8005598fc3ad07a7a8f6440d828cabc29 diff --git a/src/search.cpp b/src/search.cpp index d6b611a3..cae8a684 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1526,7 +1526,7 @@ moves_loop: // When in check, search starts from here assert(type_of(move) != ENPASSANT); // Due to !pos.advanced_pawn_push // moveCount pruning - if (moveCount > abs(depth) + 2) + if (moveCount > 2) continue; futilityValue = futilityBase + PieceValue[EG][pos.piece_on(to_sq(move))];