diff --git a/generator/feature_sorter.cpp b/generator/feature_sorter.cpp index c089185f25..04931e1fa2 100644 --- a/generator/feature_sorter.cpp +++ b/generator/feature_sorter.cpp @@ -51,7 +51,7 @@ namespace uint64_t const pointAsInt64 = PointToInt64(m_midLoc.x, m_midLoc.y, m_coordBits); uint64_t const minScale = feature::GetMinDrawableScale(ft.GetFeatureBase()); - CHECK(minScale <= scales::GetUpperScale(), ("Dat file contain invisible feature")); + CHECK(minScale <= scales::GetUpperStyleScale(), ("Dat file contain invisible feature")); uint64_t const order = (minScale << 59) | (pointAsInt64 >> 5); m_vec.push_back(make_pair(order, pos)); diff --git a/indexer/feature_visibility.cpp b/indexer/feature_visibility.cpp index fe3213dfe0..6e0066d040 100644 --- a/indexer/feature_visibility.cpp +++ b/indexer/feature_visibility.cpp @@ -292,7 +292,7 @@ bool RemoveNoDrawableTypes(vector & types, FeatureGeoType ft) int GetMinDrawableScale(FeatureBase const & f) { - int const upBound = scales::GetUpperScale(); + int const upBound = scales::GetUpperStyleScale(); for (int level = 0; level <= upBound; ++level) if (feature::IsDrawableForIndex(f, level))