From 7d0c61e0b368d27f4f1233852b2aa2d1c67480a6 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Fri, 7 Jan 2011 17:37:34 +0200 Subject: [PATCH] Fixed crash when file was downloaded (due to not full path) --- storage/storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/storage.cpp b/storage/storage.cpp index e4e718faaa..c49835e672 100644 --- a/storage/storage.cpp +++ b/storage/storage.cpp @@ -297,7 +297,7 @@ namespace storage if (size.second != 0) m_countryProgress.first = (m_countryProgress.second - size.second); // activate downloaded map piece - string const datFile = FileFromUrl(url); + string const datFile = GetPlatform().ReadPathForFile(FileFromUrl(url)); m_addMap(datFile); } DownloadNextCountryFromQueue();