X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=12259bafb6f595f5c05c5bba550367aa6b4f866c;hp=0c5ead46754c20411fe6ab3de99953dceb884524;hb=af220cfd52d95e6b05539036ebf9319131dd469d;hpb=1130c8d8153b2132c4352324421f342e9c50b08e diff --git a/src/search.cpp b/src/search.cpp index 0c5ead46..12259baf 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1091,16 +1091,16 @@ namespace { // Initialize a MovePicker object for the current position, and prepare // to search all moves - MovePicker mp = MovePicker(pos, ttMove, depth, H, &ss[ply]); - Move move, movesSearched[256]; int moveCount = 0; Value value, bestValue = -VALUE_INFINITE; - Bitboard dcCandidates = mp.discovered_check_candidates(); Color us = pos.side_to_move(); bool isCheck = pos.is_check(); bool mateThreat = pos.has_mate_threat(opposite_color(us)); + MovePicker mp = MovePicker(pos, ttMove, depth, H, &ss[ply]); + Bitboard dcCandidates = mp.discovered_check_candidates(); + // Loop through all legal moves until no moves remain or a beta cutoff // occurs. while ( alpha < beta