forked from organicmaps/organicmaps
CountryInfoGetter m_countries corruption fix.
This commit is contained in:
parent
8f4073c2ea
commit
518be05fa8
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ void CountryInfoGetter::GetRegionsCountryId(m2::PointD const & pt, TCountriesVec
|
|||
|
||||
for (size_t id = 0; id < m_countries.size(); ++id)
|
||||
{
|
||||
if (m_countries[id].m_rect.Intersect(lookupRect) && IsCloseEnough(id, pt, kLookupRadiusM))
|
||||
if (m_countries[id].m_rect.IsIntersect(lookupRect) && IsCloseEnough(id, pt, kLookupRadiusM))
|
||||
closestCoutryIds.emplace_back(m_countries[id].m_name);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue