diff --git a/storage/storage.cpp b/storage/storage.cpp index 99d5c964dd..1dbf7aff93 100644 --- a/storage/storage.cpp +++ b/storage/storage.cpp @@ -1424,11 +1424,10 @@ bool Storage::GetUpdateInfo(TCountryId const & countryId, UpdateInfo & updateInf void Storage::CorrectJustDownloadedAndQueue(TQueue::iterator justDownloadedItem) { + m_justDownloaded.insert(justDownloadedItem->GetCountryId()); m_queue.erase(justDownloadedItem); if (m_queue.empty()) m_justDownloaded.clear(); - else - m_justDownloaded.insert(justDownloadedItem->GetCountryId()); } void Storage::GetQueuedChildren(TCountryId const & parent, TCountriesVec & queuedChildren) const