From f994b314a29f4da2e542b40a23a725b3d9958ca1 Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 2 Mar 2015 19:27:44 -0800 Subject: [PATCH] Fix Evolution Randomizer Crash (i->j) Heh, silly. --- pk3DS/Subforms/Evolution.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pk3DS/Subforms/Evolution.cs b/pk3DS/Subforms/Evolution.cs index b4acaa8..ee9191d 100644 --- a/pk3DS/Subforms/Evolution.cs +++ b/pk3DS/Subforms/Evolution.cs @@ -143,7 +143,8 @@ private void B_RandAll_Click(object sender, EventArgs e) { CB_Species.SelectedIndex = i; // Get new Species for (int j = 0; j < mb.Length; j++) - if (mb[j].SelectedIndex > 0) rb[i].SelectedIndex = rnd.Next(1, 722); + if (mb[j].SelectedIndex > 0) + rb[j].SelectedIndex = rnd.Next(1, 722); } setList(); Util.Alert("All Pokemon's Evolutions have been randomized!");