diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 1d2b0e70..6ad638f2 100755 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -408,7 +408,7 @@ void View::DrawImpl() ImGui::Begin( "Profiler", nullptr, ImGuiWindowFlags_ShowBorders ); if( ImGui::Button( m_pause ? "Resume" : "Pause", ImVec2( 80, 0 ) ) ) m_pause = !m_pause; ImGui::SameLine(); - ImGui::Text( "Frames: %-7i Time span: %s", m_frames.size(), TimeToString( GetLastTime() - m_frames[0] ) ); + ImGui::Text( "Frames: %-7i Time span: %s", m_frames.size(), m_frames.empty() ? "---" : TimeToString( GetLastTime() - m_frames[0] ) ); DrawFrames(); ImGui::End();