From 539ffb381080287c1682cd309f0af24be9e50125 Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Sun, 23 Jun 2024 15:40:46 +0200 Subject: [PATCH] fix campaign highscore sum --- client/CServerHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/CServerHandler.cpp b/client/CServerHandler.cpp index 2ee59e171..b162e4c89 100644 --- a/client/CServerHandler.cpp +++ b/client/CServerHandler.cpp @@ -648,14 +648,14 @@ void CServerHandler::startGameplay(VCMI_LIB_WRAP_NAMESPACE(CGameState) * gameSta if(CMM) CMM->disable(); - campaignScoreCalculator = nullptr; - switch(si->mode) { case EStartMode::NEW_GAME: client->newGame(gameState); break; case EStartMode::CAMPAIGN: + if(si->campState->conqueredScenarios().empty()) + campaignScoreCalculator.reset(); client->newGame(gameState); break; case EStartMode::LOAD_GAME: