Fixed a bug that caused a crash if you tried to spawn an instance without changing the spawn layer
This commit is contained in:
parent
f19e5c1153
commit
c1014f4748
|
@ -75,8 +75,10 @@ void WCreateTab::OnLayersChanged()
|
||||||
for (u32 iLyr = 0; iLyr < pArea->GetScriptLayerCount(); iLyr++)
|
for (u32 iLyr = 0; iLyr < pArea->GetScriptLayerCount(); iLyr++)
|
||||||
ui->SpawnLayerComboBox->addItem(TO_QSTRING(pArea->GetScriptLayer(iLyr)->Name()));
|
ui->SpawnLayerComboBox->addItem(TO_QSTRING(pArea->GetScriptLayer(iLyr)->Name()));
|
||||||
|
|
||||||
ui->SpawnLayerComboBox->blockSignals(false);
|
|
||||||
ui->SpawnLayerComboBox->setCurrentIndex(0);
|
ui->SpawnLayerComboBox->setCurrentIndex(0);
|
||||||
|
ui->SpawnLayerComboBox->blockSignals(false);
|
||||||
|
|
||||||
|
OnSpawnLayerChanged(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WCreateTab::OnSpawnLayerChanged(int LayerIndex)
|
void WCreateTab::OnSpawnLayerChanged(int LayerIndex)
|
||||||
|
|
Loading…
Reference in New Issue