[search] Fixed bug with rank when there is no region and no current position detected.

This commit is contained in:
vng 2014-07-23 16:45:22 +03:00 committed by Alex Zolotarev
parent 0b23047ff5
commit 848ac71fde

View file

@ -575,7 +575,7 @@ namespace impl
{
storage::CountryInfo ci;
res2->m_region.GetRegion(m_query.m_pInfoGetter, ci);
if (ci.m_name == m_query.GetPositionRegion())
if (ci.IsNotEmpty() && ci.m_name == m_query.GetPositionRegion())
res2->m_rank *= 1.7;
}
break;