diff --git a/drape/overlay_handle.cpp b/drape/overlay_handle.cpp index 92150dc112..c7cc6e4926 100644 --- a/drape/overlay_handle.cpp +++ b/drape/overlay_handle.cpp @@ -248,7 +248,7 @@ uint64_t CalculateOverlayPriority(int minZoomLevel, uint8_t rank, float depth) float const kMinDepth = -100000.0f; float const kMaxDepth = 100000.0f; - float const d = my::clamp(depth, kMinDepth, kMaxDepth) + kMaxDepth; + float const d = my::clamp(depth, kMinDepth, kMaxDepth) - kMinDepth; uint32_t const priority = static_cast(d); return (static_cast(minZoom) << 56) |