diff --git a/pk3DS.Core/Randomizers/LearnsetRandomizer.cs b/pk3DS.Core/Randomizers/LearnsetRandomizer.cs index 7e59ae1..eda660c 100644 --- a/pk3DS.Core/Randomizers/LearnsetRandomizer.cs +++ b/pk3DS.Core/Randomizers/LearnsetRandomizer.cs @@ -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;