From a3c24f27f081e49b9a814aba61d298f1d0a5d0fa Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Wed, 23 Feb 2022 18:47:18 +0100 Subject: Debug PGN import --- src/game_tab/Game.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/game_tab/Game.cpp') diff --git a/src/game_tab/Game.cpp b/src/game_tab/Game.cpp index ad712bb..b9181a9 100644 --- a/src/game_tab/Game.cpp +++ b/src/game_tab/Game.cpp @@ -15,10 +15,10 @@ Game::Game(std::string fen) : current(NULL), moves(NULL) { board = chessarbiter::FENParser::Parse(fen).board; } -Game::Game(HalfMove *m) { +Game::Game(HalfMove *m, std::string initial_fen) { moves = m; current = m; - initial_fen = m->GetFen(); + this->initial_fen = initial_fen; board = chessarbiter::FENParser::Parse(initial_fen).board; } @@ -91,7 +91,7 @@ bool Game::Play(std::string move) { if (moves == NULL) { moves = m; } - wxLogDebug("%s",GetPGN()); + wxLogDebug("%s", GetPGN()); return (true); } return (false); -- cgit v1.2.3