X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=47e1af2704e3eb21e08026d09d2a3c0bbe5dd461;hp=0c7d62ce10e63839356214778211a93662137e75;hb=cff3a6d33e50d37322ffae511ddbe4c7e846505e;hpb=20d7197a9be9c03f153c7ceac73857da8416bba4 diff --git a/src/position.cpp b/src/position.cpp index 0c7d62ce..47e1af27 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -39,6 +39,8 @@ //// Variables //// +extern SearchStack EmptySearchStack; + int Position::castleRightsMask[64]; Key Position::zobrist[2][8][64]; @@ -1914,8 +1916,7 @@ bool Position::is_mate() { if (is_check()) { - MovePicker mp = MovePicker(*this, false, MOVE_NONE, MOVE_NONE, - MOVE_NONE, MOVE_NONE, Depth(0)); + MovePicker mp = MovePicker(*this, false, MOVE_NONE, EmptySearchStack, Depth(0)); return mp.get_next_move() == MOVE_NONE; } return false;