Fixed download progress

This commit is contained in:
Alex Zolotarev 2011-01-15 06:34:35 +02:00 committed by Alex Zolotarev
parent 4a6a7f3448
commit d2d88897c1

View file

@ -295,7 +295,7 @@ namespace storage
{
TLocalAndRemoteSize size = CountryByIndex(m_queue.front()).Size();
if (size.second != 0)
m_countryProgress.first = (m_countryProgress.second - size.second);
m_countryProgress.first = size.first;
// activate downloaded map piece
string const datFile = GetPlatform().ReadPathForFile(FileFromUrl(url));
m_addMap(datFile);