fix crash when toggling scripts while the registered fucntions list dialog is open

This commit is contained in:
adelikat 2019-11-29 09:55:36 -06:00
parent 4d4c32fffa
commit 7a95fa543d
1 changed files with 1 additions and 1 deletions

View File

@ -678,7 +678,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();
}