fix campaign highscore sum

This commit is contained in:
Laserlicht
2024-06-23 15:40:46 +02:00
committed by GitHub
parent c328007687
commit 539ffb3810
+2 -2
View File
@@ -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: