Fix processing both of WorldCoast files obsolete or not

This commit is contained in:
Sergey Yershov 2016-02-29 19:14:35 +03:00
parent bab7838cc5
commit e90d97c9a9

View file

@ -1021,6 +1021,9 @@ void Storage::RegisterCountryFiles(TCountryId const & countryId, string const &
void Storage::RegisterFakeCountryFiles(platform::LocalCountryFile const & localFile)
{
if (localFile.GetCountryName() == (platform::migrate::NeedMigrate() ? WORLD_COASTS_FILE_NAME : WORLD_COASTS_OBSOLETE_FILE_NAME))
return;
TLocalFilePtr fakeCountryLocalFile = make_shared<LocalCountryFile>(localFile);
fakeCountryLocalFile->SyncWithDisk();
m_localFilesForFakeCountries[fakeCountryLocalFile->GetCountryFile()] = fakeCountryLocalFile;