aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/Game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game_tab/Game.cpp')
-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;
}
}