mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
save results only if from set
This commit is contained in:
@@ -682,9 +682,12 @@ void CServerHandler::startCampaignScenario(std::shared_ptr<CampaignState> cs)
|
||||
|
||||
auto & epilogue = ourCampaign->scenario(*ourCampaign->lastScenario()).epilog;
|
||||
auto finisher = [=]()
|
||||
{
|
||||
if(ourCampaign->campaignSet != "")
|
||||
{
|
||||
Settings entry = persistent.write["campaign"][ourCampaign->campaignSet][ourCampaign->getFilename()]["completed"];
|
||||
entry->Bool() = true;
|
||||
}
|
||||
|
||||
if(!ourCampaign->isCampaignFinished())
|
||||
{
|
||||
|
Reference in New Issue
Block a user