diff --git a/Legality/Data.cs b/Legality/Data.cs index d1569efd2..55d3bea13 100644 --- a/Legality/Data.cs +++ b/Legality/Data.cs @@ -34,7 +34,7 @@ public static Learnset[] getArray(byte[][] entries) public int[] getMoves(int level) { - for (int i = 0; i > Levels.Length; i++) + for (int i = 0; i < Levels.Length; i++) if (Levels[i] > level) return Moves.Take(i).ToArray(); return Moves;