aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/Game.cpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-02-25 11:42:46 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-02-25 11:42:46 +0100
commitc6f648cfb49372508fc4f2c6281d7752074397d7 (patch)
tree83c49e4db7f76b74a02c2cb81e307211a004cb74 /src/game_tab/Game.cpp
parent64dec753e7a6594a8b68f7978773e80353d8e869 (diff)
Improve pgn save performance
Diffstat (limited to 'src/game_tab/Game.cpp')
-rw-r--r--src/game_tab/Game.cpp6
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());
+ }
+}