diff --git a/BizHawk.Client.EmuHawk/MainForm.Events.cs b/BizHawk.Client.EmuHawk/MainForm.Events.cs index 1acf183088..f48f2ac069 100644 --- a/BizHawk.Client.EmuHawk/MainForm.Events.cs +++ b/BizHawk.Client.EmuHawk/MainForm.Events.cs @@ -1193,9 +1193,9 @@ namespace BizHawk.Client.EmuHawk { FdsEjectDiskMenuItem.Enabled = Global.Emulator.BoardName == "FDS"; - for (int i = 1; i < FDSControlsMenuItem.DropDownItems.Count; i++) + while (FDSControlsMenuItem.DropDownItems.Count > 1) { - FDSControlsMenuItem.DropDownItems.Remove(FDSControlsMenuItem.DropDownItems[i]); + FDSControlsMenuItem.DropDownItems.RemoveAt(1); } for (int i = 0; i < 16; i++)