From 9be3364db405b1b5c1b715b6cc22303f03e80a81 Mon Sep 17 00:00:00 2001 From: goyuken Date: Mon, 20 Jan 2014 17:18:55 +0000 Subject: [PATCH] FDS: fix menu bug --- BizHawk.Client.EmuHawk/MainForm.Events.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++)