diff options
author | VladiMihaylenko <vxmihaylenko@gmail.com> | 2017-09-11 15:37:29 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2017-09-13 16:25:54 +0300 |
commit | 6eeb3d8b3e3eaeb08e7d8c32bbb0efbc0a2be116 (patch) | |
tree | 8814bbbd3928fc2c3af548a2b9fb07832404ab08 /storage | |
parent | 058bc5e8b3b0fc7dc4afded6b8ad552813466d53 (diff) |
Copy countryId before erase it.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/storage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/storage.cpp b/storage/storage.cpp index 10247ebdd7..6e8d895dec 100644 --- a/storage/storage.cpp +++ b/storage/storage.cpp @@ -585,7 +585,7 @@ void Storage::DownloadNextCountryFromQueue() } QueuedCountry & queuedCountry = m_queue.front(); - TCountryId const & countryId = queuedCountry.GetCountryId(); + TCountryId const countryId = queuedCountry.GetCountryId(); // It's not even possible to prepare directory for files before // downloading. Mark this country as failed and switch to next |