mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-27 12:36:15 +08:00
Fix a bug in generate_pawn_captures()
Introduced in "movegen: Introduce generate_pawn_captures()" when unifiying black and white functions. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -673,7 +673,7 @@ namespace {
|
||||
}
|
||||
|
||||
// Non-capturing promotions
|
||||
b1 = (Us == WHITE ? pawns << 8 : pawns >> 8) & pos.empty_squares() & Rank8BB;
|
||||
b1 = (Us == WHITE ? pawns << 8 : pawns >> 8) & pos.empty_squares() & TRank8BB;
|
||||
while (b1)
|
||||
{
|
||||
sq = pop_1st_bit(&b1);
|
||||
|
||||
Reference in New Issue
Block a user