From b8b73bb9ed5678434d82b573bf677785ee57fc69 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sat, 31 Dec 2022 12:19:45 +0100 Subject: Improve chess game editor --- src/game_tab/HalfMove.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game_tab/HalfMove.cpp') diff --git a/src/game_tab/HalfMove.cpp b/src/game_tab/HalfMove.cpp index 9a4558c..735f17c 100644 --- a/src/game_tab/HalfMove.cpp +++ b/src/game_tab/HalfMove.cpp @@ -28,7 +28,7 @@ HalfMove::HalfMove(HalfMove *m){ IsBlack = m->IsBlack; Number = m->Number; nag = m->nag; - SetComment(m->GetComment()); + comment=m->comment; if(m->mainline != NULL){ SetMainline(new HalfMove(m->mainline)); } @@ -141,7 +141,7 @@ HalfMove::HalfMove(pgnp::HalfMove *m) : capture(' ') { this->move = m->move; this->nag = m->NAG; this->IsBlack = m->isBlack; - this->SetComment(m->comment); + this->comment=m->comment; this->Number = m->count; if (m->MainLine != NULL) { this->SetMainline(new HalfMove(m->MainLine)); -- cgit v1.2.3