summaryrefslogtreecommitdiff
path: root/lib/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/board.c')
-rw-r--r--lib/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/board.c b/lib/board.c
index 499478a..a4a6c49 100644
--- a/lib/board.c
+++ b/lib/board.c
@@ -27,7 +27,7 @@ static Board _setup_colors(Board b) {
static Board _set_new_piece(Board b, Coord c, Color color, PieceType t) {
Square s = board_get_square(b, c);
- s.piece = new_piece(color, t);
+ s.piece = piece_new(color, t);
return board_set_square(b, c, s);
}
nihil fit ex nihilo