mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 06:17:49 +00: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:
+1
-1
@@ -673,7 +673,7 @@ namespace {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Non-capturing promotions
|
// 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)
|
while (b1)
|
||||||
{
|
{
|
||||||
sq = pop_1st_bit(&b1);
|
sq = pop_1st_bit(&b1);
|
||||||
|
|||||||
Reference in New Issue
Block a user