diff options
Diffstat (limited to 'src/game_tab/Game.cpp')
| -rw-r--r-- | src/game_tab/Game.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); |
