mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-09 13:37:43 +00:00
Fixed a bug that caused a crash if you tried to spawn an instance without changing the spawn layer
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user