X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=44a1a404b580da478671a4b765ccffe839b23ffb;hp=aac03eb24a328150f71443bdd03ef8f3797e353f;hb=12f4bbc8f2b6122d9dc0949f3483e7dd3f26a829;hpb=1e7aaed8bc4247a742d515811f0e484ff40309b8 diff --git a/src/position.cpp b/src/position.cpp index aac03eb2..44a1a404 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -1730,8 +1730,8 @@ bool Position::has_mate_threat() { do_null_move(st1); // Then generate pseudo-legal moves that could give check - last = generate_non_capture_checks(*this, mlist); - last = generate_captures(*this, last); + last = generate(*this, mlist); + last = generate(*this, last); // Loop through the moves, and see if one of them gives mate Bitboard pinned = pinned_pieces(sideToMove);