diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 3f263a94..f8750b71 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -3064,7 +3064,14 @@ void View::DrawZones() { // FIXME t0 = std::min( t0, _t0 ); - t1 = std::max( t1, std::min( m_worker.GetLastTime(), m_worker.GetZoneEnd( *td.second.timeline.back() ) ) ); + if( td.second.timeline.is_magic() ) + { + t1 = std::max( t1, std::min( m_worker.GetLastTime(), m_worker.GetZoneEnd( ((Vector*)&td.second.timeline)->back() ) ) ); + } + else + { + t1 = std::max( t1, std::min( m_worker.GetLastTime(), m_worker.GetZoneEnd( *td.second.timeline.back() ) ) ); + } } } if( t0 < t1 )