fixed promotion missing colour

This commit is contained in:
Karma Riuk 2025-02-02 23:16:53 +01:00
parent 24165bb5bb
commit 31b0656332

View File

@ -56,7 +56,7 @@ std::vector<Move> pawn_moves(const Board& b, const Coords xy) {
ret.push_back(Move{
xy.to_index(),
new_xy.to_index(),
.promoting_to = piece
.promoting_to = my_colour | piece
});
}