mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Merge pull request #3455 from Laserlicht/campaign_completion
fix campaign completion
This commit is contained in:
@@ -729,7 +729,7 @@ void CServerHandler::startCampaignScenario(HighScoreParameter param, std::shared
|
|||||||
auto & epilogue = ourCampaign->scenario(*ourCampaign->lastScenario()).epilog;
|
auto & epilogue = ourCampaign->scenario(*ourCampaign->lastScenario()).epilog;
|
||||||
auto finisher = [=]()
|
auto finisher = [=]()
|
||||||
{
|
{
|
||||||
if(ourCampaign->campaignSet != "")
|
if(ourCampaign->campaignSet != "" && ourCampaign->isCampaignFinished())
|
||||||
{
|
{
|
||||||
Settings entry = persistentStorage.write["completedCampaigns"][ourCampaign->getFilename()];
|
Settings entry = persistentStorage.write["completedCampaigns"][ourCampaign->getFilename()];
|
||||||
entry->Bool() = true;
|
entry->Bool() = true;
|
||||||
|
Reference in New Issue
Block a user