- moveList = generate_castling<MakeCastling<Us, KING_SIDE>::right, Checks, false>(pos, moveList, Us);
- moveList = generate_castling<MakeCastling<Us, QUEEN_SIDE>::right, Checks, false>(pos, moveList, Us);
+ moveList = generate_castling<Us, KING_SIDE, Checks, false>(pos, moveList);
+ moveList = generate_castling<Us, QUEEN_SIDE, Checks, false>(pos, moveList);