diff --git a/src/search.cpp b/src/search.cpp index c0b6507c..53811de0 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1369,7 +1369,8 @@ namespace { { // History pruning. See ok_to_prune() definition if ( moveCount >= 2 + int(depth) - && ok_to_prune(pos, move, ss[ply].threatMove, depth)) + && ok_to_prune(pos, move, ss[ply].threatMove, depth) + && bestValue > value_mated_in(PLY_MAX)) continue; // Value based pruning