diff options
author | vng <viktor.govako@gmail.com> | 2012-01-26 20:56:37 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:32:30 +0300 |
commit | 288d48ded6985fd3601e3a0a885471448f01e208 (patch) | |
tree | 3e7b8ccc89e7c6a03d1a96d2e63d4b1cffe40943 /storage | |
parent | 8a9287d680f469cf7eb1c4cf1b127823bb63d81d (diff) |
Fix ASSERT. minsk-pass is not a country.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/country_info.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/storage/country_info.cpp b/storage/country_info.cpp index bb5e2c2722..b0b99d292c 100644 --- a/storage/country_info.cpp +++ b/storage/country_info.cpp @@ -98,7 +98,10 @@ namespace storage void CountryInfoGetter::GetRegionInfo(string const & id, CountryInfo & info) const { map<string, CountryInfo>::const_iterator i = m_id2info.find(id); - ASSERT ( i != m_id2info.end(), () ); + + // Take into account 'minsk-pass'. + if (i == m_id2info.end()) return; + //ASSERT ( i != m_id2info.end(), () ); info = i->second; |