From 5f9a9e805bd3143f889083fcf4152831dcc3e5d1 Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Thu, 20 Apr 2006 14:32:30 -0400 Subject: [PATCH] Initialize the FEN tag in init_userdata() if there is one. --- src/cboard.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cboard.c b/src/cboard.c index 4027e3c..ddfb4a7 100644 --- a/src/cboard.c +++ b/src/cboard.c @@ -2850,7 +2850,9 @@ void init_userdata() d = Calloc(1, sizeof(struct userdata_s)); game[i].data = d; d->n = i; - pgn_board_init(d->b); + + if (pgn_board_init_fen(&game[i], d->b, NULL) != E_PGN_OK) + pgn_board_init(d->b); } } -- 2.11.4.GIT