aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-01-27 08:50:48 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-01-27 08:50:48 +0100
commit57c3437e6330df04eab2e076d9bbebfd10ea3f3e (patch)
tree83de1c52fd994c105488ad097a7fc9cd6bd6e2a2
parente24ebe013870ce447594768e4bd621420d809578 (diff)
Debug parser
-rw-r--r--src/PGN.cpp9
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);
}
}
}