This commit is contained in:
adelikat 2020-05-01 15:32:44 -05:00
parent 3e8bad74a2
commit 345ae3b872
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ namespace BizHawk.Client.EmuHawk
public void DoLuaEvent(IntPtr handle)
{
LuaSandbox.Sandbox(_ownerFile.Thread, () =>
// #1957 - ownerFile can be full, if the script that generated the form ended which will happen if the script does not have a while true loop
LuaSandbox.Sandbox(_ownerFile?.Thread, () =>
{
Environment.CurrentDirectory = _currentDirectory;
foreach (LuaEvent luaEvent in ControlEvents)