2994: Fix multiple layer editing r=def- a=Learath2

Idk how I thought this ever worked. Fixes #2981 

Co-authored-by: Learath2 <learath2@gmail.com>
This commit is contained in:
bors[bot] 2020-10-03 18:59:04 +00:00 committed by GitHub
commit 1040b59c05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3480,8 +3480,8 @@ void CEditor::RenderLayers(CUIRect ToolBox, CUIRect View)
bool AllTile = true;
for(int i = 0; AllTile && i < m_lSelectedLayers.size(); i++)
{
if(m_Map.m_lGroups[m_SelectedGroup]->m_lLayers[i]->m_Type == LAYERTYPE_TILES)
s_LayerPopupContext.m_aLayers.add((CLayerTiles *)m_Map.m_lGroups[m_SelectedGroup]->m_lLayers[i]);
if(m_Map.m_lGroups[m_SelectedGroup]->m_lLayers[m_lSelectedLayers[i]]->m_Type == LAYERTYPE_TILES)
s_LayerPopupContext.m_aLayers.add((CLayerTiles *)m_Map.m_lGroups[m_SelectedGroup]->m_lLayers[m_lSelectedLayers[i]]);
else
AllTile = false;
}