From a9eeac6d641d8a62ef9372a0dfeccca1bd875eb0 Mon Sep 17 00:00:00 2001 From: adelikat Date: Mon, 4 Jun 2012 02:33:34 +0000 Subject: [PATCH] Lua - fix bug that was causing lua functions to duplicate each time a lua script was toggled or opened, eventually causing crashes. --- BizHawk.MultiClient/LuaImplementation.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/BizHawk.MultiClient/LuaImplementation.cs b/BizHawk.MultiClient/LuaImplementation.cs index 35668d2566..c086faad27 100644 --- a/BizHawk.MultiClient/LuaImplementation.cs +++ b/BizHawk.MultiClient/LuaImplementation.cs @@ -151,9 +151,8 @@ namespace BizHawk.MultiClient public Lua SpawnCoroutine(string File) { - LuaConsole Luas = new LuaConsole(); var t = lua.NewThread(); - LuaRegister(t); + //LuaRegister(t); //adelikat: Not sure why this was here but it was causing the entire luaimplmeentaiton to be duplicated each time, eventually resulting in crashes var main = t.LoadFile(File); t.Push(main); //push main function on to stack for subsequent resuming return t;