From 63328b612330ad1a6b2fd632cc3e4a0f05faec80 Mon Sep 17 00:00:00 2001 From: cadon Date: Fri, 18 Mar 2016 18:01:48 +0100 Subject: [PATCH] fixes --- ARKBreedingStats/CreatureInfoInput.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ARKBreedingStats/CreatureInfoInput.cs b/ARKBreedingStats/CreatureInfoInput.cs index c018f78b..14903544 100644 --- a/ARKBreedingStats/CreatureInfoInput.cs +++ b/ARKBreedingStats/CreatureInfoInput.cs @@ -25,6 +25,10 @@ public partial class CreatureInfoInput : UserControl public CreatureInfoInput() { InitializeComponent(); + comboBoxMother.Items.Add("- Mother n/a"); + comboBoxFather.Items.Add("- Father n/a"); + comboBoxMother.SelectedIndex = 0; + comboBoxFather.SelectedIndex = 0; } private void buttonAdd2Library_Click(object sender, EventArgs e) @@ -95,6 +99,7 @@ public List[] Parents { for (int c = 0; c < parents[0].Count; c++) { + if (parentsSimilarity[0].Count <= c) parentsSimilarity[0][c] = 0; comboBoxMother.Items.Add(parents[0][c].name + " (" + parentsSimilarity[0][c] + ")"); if (parents[0][c] == ma) selInd = c + 1; @@ -103,6 +108,7 @@ public List[] Parents selInd = 0; for (int c = 0; c < parents[1].Count; c++) { + if (parentsSimilarity[1].Count <= c) parentsSimilarity[1][c] = 0; comboBoxFather.Items.Add(parents[1][c].name + " (" + parentsSimilarity[1][c] + ")"); if (parents[1][c] == pa) selInd = c + 1;