Skip to content

Commit

Permalink
possible fix for index-out-of-range.
Browse files Browse the repository at this point in the history
  • Loading branch information
cadaei committed Feb 5, 2017
1 parent dcd1505 commit e9c7cd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ARKBreedingStats/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private void Form1_Load(object sender, EventArgs e)
double[][] custWd = Properties.Settings.Default.customStatWeights;
string[] custWs = Properties.Settings.Default.customStatWeightNames;
Dictionary<string, double[]> custW = new Dictionary<string, double[]>();
if (custWs != null)
if (custWs != null && custWd != null)
{
for (int i = 0; i < custWs.Length; i++)
{
Expand Down

0 comments on commit e9c7cd3

Please sign in to comment.