From da86a49ea1263c72cac804702d18b25af3818f5f Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Mon, 12 Aug 2024 01:19:00 +0200 Subject: [PATCH] save var --- client/mainmenu/CStatisticScreen.cpp | 4 ++-- client/mainmenu/CStatisticScreen.h | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/client/mainmenu/CStatisticScreen.cpp b/client/mainmenu/CStatisticScreen.cpp index 40d3ff425..af70587d7 100644 --- a/client/mainmenu/CStatisticScreen.cpp +++ b/client/mainmenu/CStatisticScreen.cpp @@ -25,8 +25,8 @@ #include "../../lib/gameState/GameStatistics.h" #include "../../lib/texts/CGeneralTextHandler.h" -CStatisticScreen::CStatisticScreen(StatisticDataSet statistic) - : CWindowObject(BORDERED) +CStatisticScreen::CStatisticScreen(StatisticDataSet stat) + : CWindowObject(BORDERED), statistic(stat) { OBJ_CONSTRUCTION_CAPTURING_ALL_NO_DISPOSE; pos = center(Rect(0, 0, 800, 600)); diff --git a/client/mainmenu/CStatisticScreen.h b/client/mainmenu/CStatisticScreen.h index bee5bb140..8de845675 100644 --- a/client/mainmenu/CStatisticScreen.h +++ b/client/mainmenu/CStatisticScreen.h @@ -18,6 +18,8 @@ class CStatisticScreen : public CWindowObject std::shared_ptr filledBackground; std::vector> layout; + + StatisticDataSet statistic; public: - CStatisticScreen(StatisticDataSet statistic); + CStatisticScreen(StatisticDataSet stat); };