aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-12-31 20:25:12 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-12-31 20:25:12 +0100
commit21a5b3df8ac01d723d447d94b681ee329ee6b072 (patch)
treee9bce770ec7b5e1a3668795573b994598e0fc552 /src/game_tab
parent91d764ba59a478aa08c294d0cc1a18bf0ad848b6 (diff)
Debug Game class
Diffstat (limited to 'src/game_tab')
-rw-r--r--src/game_tab/Game.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game_tab/Game.cpp b/src/game_tab/Game.cpp
index 49bb4d8..b831f0f 100644
--- a/src/game_tab/Game.cpp
+++ b/src/game_tab/Game.cpp
@@ -25,11 +25,13 @@ Game::Game(HalfMove *m, std::string initial_fen) : result("*") {
Game::Game(const Game* g){
board=g->board;
initial_fen=g->initial_fen;
+ board = chessarbiter::FENParser::Parse(initial_fen).board;
result=g->result;
tags=g->tags;
+ current=nullptr;
+ moves=nullptr;
if(g->moves != NULL){
moves=new HalfMove(g->moves);
- current=nullptr;
}
}