aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/HalfMove.cpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-12-31 12:19:45 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-12-31 12:19:45 +0100
commitb8b73bb9ed5678434d82b573bf677785ee57fc69 (patch)
treead1a7911df3b85f97fe5a61a9315d60c724d45bc /src/game_tab/HalfMove.cpp
parent0c9ddd2f0a1e8a2c88ed22fde1828c0fe21ff4dd (diff)
Improve chess game editor
Diffstat (limited to 'src/game_tab/HalfMove.cpp')
-rw-r--r--src/game_tab/HalfMove.cpp4
1 files changed, 2 insertions, 2 deletions
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));