diff --git a/src/search.cpp b/src/search.cpp index 00f0e87b7..4a7af9509 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1134,7 +1134,7 @@ moves_loop: // When in check, search starts here // SEE based pruning for captures and checks // Avoid pruning sacrifices of our last piece for stalemate - int margin = std::max(175 * depth + captHist * 34 / 1024, 0); + int margin = 175 * depth + captHist * 34 / 1024; if ((alpha >= VALUE_DRAW || pos.non_pawn_material(us) != PieceValue[movedPiece]) && !pos.see_ge(move, -margin)) continue;