mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +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:
parent
8f2c1c59eb
commit
b145e99559
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue