- ci->checkSquares[PAWN] = attacks_from<PAWN>(ksq, ~sideToMove);
- ci->checkSquares[KNIGHT] = attacks_from<KNIGHT>(ksq);
- ci->checkSquares[BISHOP] = attacks_from<BISHOP>(ksq);
- ci->checkSquares[ROOK] = attacks_from<ROOK>(ksq);
- ci->checkSquares[QUEEN] = ci->checkSquares[BISHOP] | ci->checkSquares[ROOK];
- ci->checkSquares[KING] = 0;
+ si->checkSquares[PAWN] = attacks_from<PAWN>(ksq, ~sideToMove);
+ si->checkSquares[KNIGHT] = attacks_from<KNIGHT>(ksq);
+ si->checkSquares[BISHOP] = attacks_from<BISHOP>(ksq);
+ si->checkSquares[ROOK] = attacks_from<ROOK>(ksq);
+ si->checkSquares[QUEEN] = si->checkSquares[BISHOP] | si->checkSquares[ROOK];
+ si->checkSquares[KING] = 0;