// Remove all illegal moves to disambiguate.
Bitboard att_copy = attackers;
while (att_copy) {
- Square s = pop_lsb(&att_copy);
+ Square s = pop_lsb(att_copy);
Move m = make_move(s, to);
if (!pos->pseudo_legal(m) || !pos->legal(m)) {
attackers &= ~SquareBB[s];