X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovegen.cpp;h=dab830ba708dcb161b83c86934bbd12f2b239267;hp=829a1abcb23547c926ecbe6476a16147202b6a61;hb=d9caede3249698440b7579e31d92aaa9984a128b;hpb=20ff12e1be907b5a91143613559ea13ff0b79647 diff --git a/src/movegen.cpp b/src/movegen.cpp index 829a1abc..dab830ba 100644 --- a/src/movegen.cpp +++ b/src/movegen.cpp @@ -368,7 +368,7 @@ ExtMove* generate(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(KNIGHT, PAWN); // 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