Browse Source

fix: board: added forgotten "case"

master
parent
commit
2dfa965842
  1. 12
      src/board.c

12
src/board.c

@ -622,27 +622,27 @@ Position* board_get_positions_for(const Board* board, const Tile* piece_tile, un
}
switch (piece_tile->piece.type) {
PAWN: {
case PAWN: {
return board_get_pawn_moves(board, piece_tile, pos_count);
}
KNIGHT: {
case KNIGHT: {
return board_get_knight_moves(board, piece_tile, pos_count);
}
ROOK: {
case ROOK: {
return board_get_rook_moves(board, piece_tile, pos_count);
}
BISHOP: {
case BISHOP: {
return board_get_bishop_moves(board, piece_tile, pos_count);
}
QUEEN: {
case QUEEN: {
return board_get_queen_moves(board, piece_tile, pos_count);
}
KING: {
case KING: {
return board_get_king_moves(board, piece_tile, pos_count);
}

Loading…
Cancel
Save