From a56d6477f2d278159e8ca40457ce00e441f8b87b Mon Sep 17 00:00:00 2001 From: qhy040404 Date: Mon, 8 May 2023 09:23:22 +0800 Subject: [PATCH] Fix crash --- src/ui/Generator_Form.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/Generator_Form.cs b/src/ui/Generator_Form.cs index 072d502..9932b7a 100644 --- a/src/ui/Generator_Form.cs +++ b/src/ui/Generator_Form.cs @@ -16,6 +16,7 @@ public Generator_Form() private void area_comboBox_SelectedIndexChanged(object sender, EventArgs e) { + if (area_comboBox.SelectedIndex == -1) return; room_comboBox.Items.Clear(); room_comboBox.Items.AddRange(Constants.libraries[area_comboBox.Text]); }