Fix shift + left click in editor (fixes #5626)

This commit is contained in:
Dennis Felsing 2022-07-12 19:35:43 +02:00
parent 1132a5495b
commit de087bd80a

View file

@ -2636,6 +2636,7 @@ void CEditor::DoMapEditor(CUIRect View)
size_t BrushIndex = k;
if(m_Brush.m_vpLayers.size() != NumEditLayers)
BrushIndex = 0;
if(BrushIndex < m_Brush.m_vpLayers.size())
apEditLayers[k]->FillSelection(m_Brush.IsEmpty(), m_Brush.m_vpLayers[BrushIndex], r);
}
}