mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-14 16:10:36 -05:00
Length check suggested moves
Resize to 4
This commit is contained in:
parent
b7bef82b84
commit
78a408944f
|
|
@ -1791,7 +1791,7 @@ private void clickMoves(object sender, EventArgs e)
|
|||
Util.Shuffle(m);
|
||||
if (m.Length > 4)
|
||||
m = m.Skip(m.Length - 4).ToArray();
|
||||
|
||||
Array.Resize(ref m, 4);
|
||||
string r = string.Join(Environment.NewLine, m.Select(v => v >= GameStrings.movelist.Length ? "ERROR" : GameStrings.movelist[v]));
|
||||
if (DialogResult.Yes != Util.Prompt(MessageBoxButtons.YesNo, "Apply suggested current moves?", r))
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user