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

3
.gitignore vendored
View File

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

View File

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