Don't allow hover over sweep time if there is no data to display, preventing crash

This commit is contained in:
Dan Paulat 2024-01-09 23:02:44 -06:00
parent c42d60a97d
commit 447f3ee821

View file

@ -208,7 +208,7 @@ void OverlayLayer::Render(
ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize |
ImGuiWindowFlags_AlwaysAutoResize);
if (ImGui::IsWindowHovered())
if (radarProductView != nullptr && ImGui::IsWindowHovered())
{
// Show a detailed product description when the sweep time is hovered
p->sweepTimePicked_ = true;