mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 08:36:33 +08:00
Space inflate position until do_promotion_move()
We will end some day ;-) Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -561,7 +561,7 @@ Move generate_move_if_legal(const Position& pos, Move m, Bitboard pinned) {
|
||||
default:
|
||||
return MOVE_NONE;
|
||||
}
|
||||
// The move is pseudo-legal. Return it if it is legal.
|
||||
// The move is pseudo-legal. Return it if it is legal.
|
||||
return (pos.move_is_legal(m, pinned) ? m : MOVE_NONE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user