diff options
Diffstat (limited to 'src/search/pawn_moves.c')
| -rw-r--r-- | src/search/pawn_moves.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/search/pawn_moves.c b/src/search/pawn_moves.c index 58eac83..e169c07 100644 --- a/src/search/pawn_moves.c +++ b/src/search/pawn_moves.c @@ -12,7 +12,7 @@ void get_white_pawn_moves(moves_t* moves, position_t position) { bitboard_t friendly_pawns = position.bitboards[WHITE_PAWN]; bitboard_t y = friendly_pieces | enemy_bitboard; bitboard_t x = ~((friendly_pawns << 8) & y) & (friendly_pawns << 8); - bitboard_t first_move_x = x | BITMASK_RANK_C; + bitboard_t first_move_x = x & BITMASK_RANK_C; first_move_x |= (first_move_x << 8) & (~y); x |= first_move_x; |
