Debug and update readme

This commit is contained in:
Loic Guegan 2022-01-27 14:26:09 +01:00
parent 2ec4942cc0
commit 0258e7d4f8
2 changed files with 43 additions and 6 deletions

View file

@ -59,6 +59,10 @@ void PGN::ParseNextGame() {
} else if (IS_DIGIT(c)) {
LastGameEndLoc = ParseHalfMove(loc, moves);
break;
} else if (c == '*') {
result = "*";
LastGameEndLoc=loc+1;
break;
} else if (c == '{') {
loc = ParseComment(loc, moves);
continue; // No need loc++
@ -330,11 +334,10 @@ loctype PGN::GotoNextToken(loctype loc) {
c = pgn_content[loc];
if (c == '%' || c == ';') {
loc = GotoEOL(loc);
if(!IS_EOF){
c=pgn_content[loc];
}
else{
return(loc);
if (!IS_EOF) {
c = pgn_content[loc];
} else {
return (loc);
}
}
}