aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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); }