1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-07 00:58:39 +02:00

Removed non needed part of code

This commit is contained in:
George King
2025-03-17 22:08:08 +01:00
committed by GitHub
parent 2e352dc233
commit 02bae5ef21

View File

@ -431,16 +431,6 @@ void CMainMenu::openCampaignScreen(std::string name)
return;
}
bool campaignsFound = true;
for (auto const & entry : config[name]["items"].Vector())
{
ResourcePath resourceID(entry["file"].String(), EResType::CAMPAIGN);
if(entry["optional"].Bool())
continue;
if(!CResourceHandler::get()->existsResource(resourceID))
campaignsFound = false;
}
ENGINE->windows().createAndPushWindow<CCampaignScreen>(config, name);
}