]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Use move_is_special() in pawn endgame condition
[stockfish] / src / search.cpp
index 902049c351205e8f32405f999f978d8c21ef35e1..461c057790e18beed7d88940c9df5cbc8626a29a 100644 (file)
@@ -1720,8 +1720,7 @@ split_point_start: // At split points actual search starts from here
         && pos.type_of_piece_on(move_to(m)) != PAWN
         && (  pos.non_pawn_material(WHITE) + pos.non_pawn_material(BLACK)
             - pos.midgame_value_of_piece_on(move_to(m)) == VALUE_ZERO)
-        && !move_is_promotion(m)
-        && !move_is_ep(m))
+        && !move_is_special(m))
     {
         result += PawnEndgameExtension[PvNode];
         *dangerous = true;