diff options
author | vng <viktor.govako@gmail.com> | 2015-08-10 20:40:05 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 03:00:43 +0300 |
commit | b95fc5602c66aaa060b6b40985ebbc71a7cc245a (patch) | |
tree | 3213cb4e6bc4c0724bf2ed0d66f46b737b601f0e /map/framework.cpp | |
parent | 1b27253169d6a1fa61a61f3b638a0bc9c452440f (diff) |
[storage] Fixed migrating bug with multiple Index for one mwm local country file.
Diffstat (limited to 'map/framework.cpp')
-rw-r--r-- | map/framework.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/map/framework.cpp b/map/framework.cpp index ef8296b018..a3f655c432 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -473,15 +473,11 @@ void Framework::RegisterAllMaps() m_storage.RegisterAllLocalMaps(); int minFormat = numeric_limits<int>::max(); - vector<CountryFile> maps; - m_storage.GetLocalMaps(maps); - for (CountryFile const & countryFile : maps) + vector<shared_ptr<LocalCountryFile>> maps; + m_storage.GetLocalMaps(maps); + for (auto const & localFile : maps) { - shared_ptr<LocalCountryFile> localFile = m_storage.GetLatestLocalFile(countryFile); - if (!localFile) - continue; - auto p = RegisterMap(*localFile); if (p.second != MwmSet::RegResult::Success) continue; |