diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-25 11:42:46 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-25 11:42:46 +0100 |
| commit | c6f648cfb49372508fc4f2c6281d7752074397d7 (patch) | |
| tree | 83c49e4db7f76b74a02c2cb81e307211a004cb74 /src/game_tab/Game.cpp | |
| parent | 64dec753e7a6594a8b68f7978773e80353d8e869 (diff) | |
Improve pgn save performance
Diffstat (limited to 'src/game_tab/Game.cpp')
| -rw-r--r-- | src/game_tab/Game.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game_tab/Game.cpp b/src/game_tab/Game.cpp index 2b2955a..dab67b8 100644 --- a/src/game_tab/Game.cpp +++ b/src/game_tab/Game.cpp @@ -144,3 +144,9 @@ std::string Game::GetPGN() { } void Game::SetResult(std::string result) { this->result = result; } + +void Game::BuildAndVerify() { + if (moves != NULL) { + moves->BuildAndVerify(GetFen()); + } +} |
