]> git.sesse.net Git - stockfish/blobdiff - src/movepick.cpp
Don’t score and sort all captures in RECAPTURES stage.
[stockfish] / src / movepick.cpp
index 9882960d9fda66475be430842ab847e801ad30d6..74da3205b3f5265e790b13abe1fabe568ffcbec9 100644 (file)
@@ -307,14 +307,13 @@ Move MovePicker::next_move(bool skipQuiets) {
   case QSEARCH_RECAPTURES:
       cur = moves;
       endMoves = generate<CAPTURES>(pos, cur);
-      score<CAPTURES>();
       ++stage;
       /* fallthrough */
 
   case QRECAPTURES:
       while (cur < endMoves)
       {
-          move = pick_best(cur++, endMoves);
+          move = *cur++;
           if (to_sq(move) == recaptureSquare)
               return move;
       }