]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
MovePicker: use EvalInfo to skip generating captures
[stockfish] / src / search.cpp
index e28b866e9cb26b2bc26c5bc5460a6e091aa2ef81..e2d4093ad6e6ccb8bbcc28a1b14ec6aa0c37f236 100644 (file)
@@ -1389,7 +1389,7 @@ namespace {
     // to search the moves.  Because the depth is <= 0 here, only captures,
     // queen promotions and checks (only if depth == 0) will be generated.
     MovePicker mp = MovePicker(pos, false, MOVE_NONE, MOVE_NONE, MOVE_NONE,
-                               MOVE_NONE, depth);
+                               MOVE_NONE, depth, &ei);
     Move move;
     int moveCount = 0;
     Bitboard dcCandidates = mp.discovered_check_candidates();