structures forward declarations

This commit is contained in:
2021-11-04 13:06:24 +01:00
parent ad155b5a60
commit c7faa88bfa
6 changed files with 22 additions and 13 deletions

View File

@@ -84,7 +84,7 @@ pos_t *fen2pos(pos_t *pos, char *fen)
# endif
piece |= color;
board[SQ88(file, rank)].piece = piece;
piece_add(pos, piece, SQUARE(file, rank));
board[SQ88(file, rank)].s_piece = piece_add(pos, piece, SQUARE(file, rank));
file++;
break;
case '/':