Fix zugzwang pruning issues
[stockfish] / src / search.cpp
index 85817cd16f36c98183e57503a685215ded87feab..a9e76c452d9ae958603d7bc3efa7ca7dac8ce05c 100644 (file)
@@ -898,6 +898,7 @@ moves_loop: // When in check search starts from here
 
       // Step 13. Pruning at shallow depth
       if (  !rootNode
+          && pos.non_pawn_material(pos.side_to_move())
           && bestValue > VALUE_MATED_IN_MAX_PLY)
       {
           if (   !captureOrPromotion