diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-01-27 08:50:48 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-01-27 08:50:48 +0100 |
| commit | 57c3437e6330df04eab2e076d9bbebfd10ea3f3e (patch) | |
| tree | 83de1c52fd994c105488ad097a7fc9cd6bd6e2a2 | |
| parent | e24ebe013870ce447594768e4bd621420d809578 (diff) | |
Debug parser
| -rw-r--r-- | src/PGN.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/PGN.cpp b/src/PGN.cpp index e82179f..0f15fb3 100644 --- a/src/PGN.cpp +++ b/src/PGN.cpp @@ -329,9 +329,12 @@ loctype PGN::GotoNextToken(loctype loc) { } c = pgn_content[loc]; if (c == '%' || c == ';') { - loc = GotoEOL(loc)+1; - if (IS_EOF) { - return (loc); + loc = GotoEOL(loc); + if(!IS_EOF){ + c=pgn_content[loc]; + } + else{ + return(loc); } } } |
