Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cadon committed Mar 18, 2016
1 parent d0943b0 commit 63328b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ARKBreedingStats/CreatureInfoInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -95,6 +99,7 @@ public List<Creature>[] 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;
Expand All @@ -103,6 +108,7 @@ public List<Creature>[] 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;
Expand Down

0 comments on commit 63328b6

Please sign in to comment.