fixed type mismatch
This commit is contained in:
parent
efd7bf6794
commit
be016dcbcc
@ -49,7 +49,7 @@ std::vector<Move> king_moves(const Board& b, const Coords xy) {
|
|||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
// -- Castles
|
// -- Castles
|
||||||
CastleSide castling_rights = b.colour_at(xy) == Colour::White
|
int8_t castling_rights = b.colour_at(xy) == Colour::White
|
||||||
? b.w_castle_rights
|
? b.w_castle_rights
|
||||||
: b.b_castle_rights;
|
: b.b_castle_rights;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user