Lua - fix exception when reloading a lua script with registered functions while the registered functions dialog is open

This commit is contained in:
adelikat 2016-02-06 14:22:56 -05:00
parent cc7b60e4db
commit 907850ce02
1 changed files with 1 additions and 1 deletions

View File

@ -660,7 +660,7 @@ namespace BizHawk.Client.EmuHawk
private static void UpdateRegisteredFunctionsDialog()
{
foreach (var form in Application.OpenForms.OfType<LuaRegisteredFunctionsList>())
foreach (var form in Application.OpenForms.OfType<LuaRegisteredFunctionsList>().ToList())
{
form.UpdateValues();
}