mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
copy name after init
This commit is contained in:
@ -874,10 +874,9 @@ void SelectionTab::parseCampaigns(const std::unordered_set<ResourcePath> & files
|
|||||||
for(auto & file : files)
|
for(auto & file : files)
|
||||||
{
|
{
|
||||||
auto info = std::make_shared<ElementInfo>();
|
auto info = std::make_shared<ElementInfo>();
|
||||||
//allItems[i].date = std::asctime(std::localtime(&files[i].date));
|
|
||||||
info->fileURI = file.getOriginalName();
|
info->fileURI = file.getOriginalName();
|
||||||
info->name = info->getNameForList();
|
|
||||||
info->campaignInit();
|
info->campaignInit();
|
||||||
|
info->name = info->getNameForList();
|
||||||
if(info->campaign)
|
if(info->campaign)
|
||||||
allItems.push_back(info);
|
allItems.push_back(info);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user