1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Merge pull request #4751 from Laserlicht/patch-3

fix campaign name
This commit is contained in:
Ivan Savenko 2024-10-11 00:22:23 +03:00 committed by GitHub
commit bc5b8d071f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -874,10 +874,9 @@ void SelectionTab::parseCampaigns(const std::unordered_set<ResourcePath> & files
for(auto & file : files)
{
auto info = std::make_shared<ElementInfo>();
//allItems[i].date = std::asctime(std::localtime(&files[i].date));
info->fileURI = file.getOriginalName();
info->name = info->getNameForList();
info->campaignInit();
info->name = info->getNameForList();
if(info->campaign)
allItems.push_back(info);
}