diff --git a/src/search.cpp b/src/search.cpp index f0c1bdd9..340ddfc1 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1302,8 +1302,7 @@ moves_loop: // When in check and at SpNode search starts from here // Detect non-capture evasions that are candidates to be pruned evasionPrunable = InCheck && bestValue > VALUE_MATED_IN_MAX_PLY - && !pos.capture(move) - && !pos.can_castle(pos.side_to_move()); + && !pos.capture(move); // Don't search moves with negative SEE values if ( (!InCheck || evasionPrunable)