Skip to content

Commit

Permalink
Fix stack overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tylercamp committed Apr 20, 2024
1 parent 6a34bda commit b49c3f2
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions PalCalc.UI/Model/TraitIcon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,17 @@ ImageSource IconImage(string iconName)
return source;
}

Images.Add(-3, IconImage("Passive_Negative_3_icon.png"));
Images.Add(-2, IconImage("Passive_Negative_2_icon.png"));
Images.Add(-1, IconImage("Passive_Negative_1_icon.png"));
images = new Dictionary<int, ImageSource>();

Images.Add(0, IconImage("Passive_Positive_1_icon.png"));
images.Add(-3, IconImage("Passive_Negative_3_icon.png"));
images.Add(-2, IconImage("Passive_Negative_2_icon.png"));
images.Add(-1, IconImage("Passive_Negative_1_icon.png"));

Images.Add(1, IconImage("Passive_Positive_1_icon.png"));
Images.Add(2, IconImage("Passive_Positive_2_icon.png"));
Images.Add(3, IconImage("Passive_Positive_3_icon.png"));
images.Add(0, IconImage("Passive_Positive_1_icon.png"));

images.Add(1, IconImage("Passive_Positive_1_icon.png"));
images.Add(2, IconImage("Passive_Positive_2_icon.png"));
images.Add(3, IconImage("Passive_Positive_3_icon.png"));
}

return images;
Expand Down

0 comments on commit b49c3f2

Please sign in to comment.