diff --git a/drape_frontend/backend_renderer.cpp b/drape_frontend/backend_renderer.cpp index 132a4a3432..83b80d9bdf 100644 --- a/drape_frontend/backend_renderer.cpp +++ b/drape_frontend/backend_renderer.cpp @@ -152,15 +152,10 @@ void BackendRenderer::AcceptMessage(ref_ptr message) } else { - if (msg->IsCurrentCountry()) + gui::CountryInfo const & info = msg->GetCountryInfo(); + if (msg->IsCurrentCountry() || helper.GetCountryIndex() == info.m_countryIndex) { - helper.SetCountryInfo(msg->GetCountryInfo()); - } - else - { - // check if country is current - if (helper.GetCountryIndex() == msg->GetCountryInfo().m_countryIndex) - helper.SetCountryInfo(msg->GetCountryInfo()); + helper.SetCountryInfo(info); } } break;