aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-02-17 14:26:29 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-02-17 14:26:29 +0100
commit25f9d75f043d6c920088556b642041dbaf001d60 (patch)
tree4c7e0d6ac700fdb422c413429f456b041b36515f
parentbc5536356905e011afe719967f5e69c20a3cbbd3 (diff)
Debug CGEHalfMove::SetComment()
-rw-r--r--src/CGEHalfMove.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CGEHalfMove.cpp b/src/CGEHalfMove.cpp
index 7a5d095..669b568 100644
--- a/src/CGEHalfMove.cpp
+++ b/src/CGEHalfMove.cpp
@@ -33,6 +33,10 @@ void CGEHalfMove::SetComment(const std::string &c) {
}
this->comment = c;
}
+ else {
+ this->comment="";
+ NbLineComment=0;
+ }
}
std::string CGEHalfMove::GetComment() { return (comment); }