Fixed a bug that caused a crash if you tried to spawn an instance without changing the spawn layer

This commit is contained in:
parax0 2016-03-17 15:23:26 -06:00
parent f19e5c1153
commit c1014f4748
1 changed files with 3 additions and 1 deletions

View File

@ -75,8 +75,10 @@ void WCreateTab::OnLayersChanged()
for (u32 iLyr = 0; iLyr < pArea->GetScriptLayerCount(); iLyr++)
ui->SpawnLayerComboBox->addItem(TO_QSTRING(pArea->GetScriptLayer(iLyr)->Name()));
ui->SpawnLayerComboBox->blockSignals(false);
ui->SpawnLayerComboBox->setCurrentIndex(0);
ui->SpawnLayerComboBox->blockSignals(false);
OnSpawnLayerChanged(0);
}
void WCreateTab::OnSpawnLayerChanged(int LayerIndex)