From c6f648cfb49372508fc4f2c6281d7752074397d7 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Fri, 25 Feb 2022 11:42:46 +0100 Subject: Improve pgn save performance --- src/game_tab/Game.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/game_tab/Game.cpp') 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()); + } +} -- cgit v1.2.3