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); }