Fix non-expanding first entry randomization

closes #243
This commit is contained in:
Kurt 2017-12-02 08:28:20 -08:00
parent abb9bfb41d
commit 63ca15cdb7

View File

@ -57,6 +57,8 @@ private void Randomize(Learnset set, int index)
private int[] GetRandomLevels(Learnset set, int count)
{
int[] levels = new int[count];
if (count == 0)
return levels;
if (Spread)
{
levels[0] = 1;