CountryInfoGetter m_countries corruption fix.

This commit is contained in:
Lev Dragunov 2016-03-17 11:17:03 +03:00 committed by Sergey Yershov
parent 8f4073c2ea
commit 518be05fa8

View file

@ -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);
}
}