Fix a vector<bool> subscript out of range crash (#10458)

This commit is contained in:
Ivan Stošić
2021-03-26 14:44:03 +01:00
committed by GitHub
parent 1c46e6b72b
commit 5baf11dada

View File

@@ -406,6 +406,7 @@ ZoneWindow::UpdateActiveZoneSet() noexcept
CalculateZoneSet(); CalculateZoneSet();
if (m_window) if (m_window)
{ {
m_highlightZone.clear();
m_zoneWindowDrawing->DrawActiveZoneSet(m_activeZoneSet->GetZones(), m_highlightZone, m_host); m_zoneWindowDrawing->DrawActiveZoneSet(m_activeZoneSet->GetZones(), m_highlightZone, m_host);
} }
} }