diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/board.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/board.c b/lib/board.c index a53c356..499478a 100644 --- a/lib/board.c +++ b/lib/board.c @@ -135,15 +135,15 @@ int board_delete(Board b) {  }  Square board_get_square(Board b, Coord c) { -    short x = _from_col(c.col); -    short y = _from_row(c.row); +    short x = _from_col(coord_get_col(c)); +    short y = _from_row(coord_get_row(c));      return b[x][y];  }  Board board_set_square(Board b, Coord c, Square s) { -    short x = _from_col(c.col); -    short y = _from_row(c.row); +    short x = _from_col(coord_get_col(c)); +    short y = _from_row(coord_get_row(c));      b[x][y] = s;  | 
