]> git.sesse.net Git - stockfish/blobdiff - src/movegen.cpp
Set LMRPVMoves to 10 instead of 14
[stockfish] / src / movegen.cpp
index bfeb7247c56b9c97085fc5ad2b26e57cb4eff8a7..bf8293b1259c824b8a8a91555793080d6ccfe928 100644 (file)
@@ -832,7 +832,7 @@ namespace {
   MoveStack* generate_piece_checks(const Position& pos, MoveStack* mlist, Color us,
                                    Bitboard dc, Square ksq) {
 
-    Bitboard target = pos.pieces_of_color_and_type(us, Piece);
+    Bitboard target = pos.pieces_of_color(us) & pos.pieces_of_type(Piece);
 
     // Discovered checks
     Bitboard b = target & dc;