fen.c: bug fix wrong empty square loop in fen parsing

This commit is contained in:
2021-10-31 08:30:53 +01:00
parent 2ae81fec99
commit 07e7cbc72a
2 changed files with 3 additions and 3 deletions

1
.gitignore vendored
View File

@@ -4,3 +4,4 @@ GRTAGS
GTAGS
fen
pool
piece

View File

@@ -91,9 +91,8 @@ pos_t *fen2pos(pos_t *pos, char *fen)
break;
default:
skip = cp - '0';
file += skip;
while (skip--) {
board[SQ88(file, rank)].piece = EMPTY;
board[SQ88(file++, rank)].piece = EMPTY;
}
}
}