]> git.sesse.net Git - stockfish/blobdiff - src/movegen.cpp
Correctly describe POPCNT compile
[stockfish] / src / movegen.cpp
index 829a1abcb23547c926ecbe6476a16147202b6a61..dab830ba708dcb161b83c86934bbd12f2b239267 100644 (file)
@@ -368,7 +368,7 @@ ExtMove* generate<EVASIONS>(const Position& pos, ExtMove* mlist) {
   Color us = pos.side_to_move();
   Square ksq = pos.king_square(us);
   Bitboard sliderAttacks = 0;
-  Bitboard sliders = pos.checkers() & ~pos.pieces(KNIGHT) & ~pos.pieces(PAWN);
+  Bitboard sliders = pos.checkers() & ~pos.pieces(KNIGHTPAWN);
 
   // Find all the squares attacked by slider checkers. We will remove them from
   // the king evasions in order to skip known illegal moves, which avoids any