minor fix
This commit is contained in:
parent
58109c5120
commit
e5819ee83b
@ -312,8 +312,7 @@ std::vector<Move> Board::all_legal_moves() const {
|
||||
if ((colour_at(i) == White && white_to_play)
|
||||
|| (colour_at(i) == Black && !white_to_play)) {
|
||||
std::vector<Move> moves =
|
||||
legal_moves(squares[i] & 0b111, *this, Coords::from_index(i));
|
||||
if (moves.size() > 0)
|
||||
legal_moves(squares[i], *this, Coords::from_index(i));
|
||||
ret.insert(ret.end(), moves.begin(), moves.end());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user