diff --git a/indexer/index.cpp b/indexer/index.cpp index ac11d43c0d..d941dc06f2 100644 --- a/indexer/index.cpp +++ b/indexer/index.cpp @@ -128,8 +128,7 @@ unique_ptr Index::FeaturesLoaderGuard::GetOriginalOrEditedFeatureBy if (!m_handle.IsAlive()) return {}; - MwmId const & id = m_handle.GetId(); - ASSERT_NOT_EQUAL(m_editor.GetFeatureStatus(id, index), osm::Editor::FeatureStatus::Created, ()); + ASSERT_NOT_EQUAL(m_editor.GetFeatureStatus(m_handle.GetId(), index), osm::Editor::FeatureStatus::Created, ()); if (!GetFeatureByIndex(index, *feature)) return {};