defer disposal of lua context to main thread
This commit is contained in:
@@ -128,7 +128,8 @@ namespace OpenRA.Mods.RA.Scripting
|
||||
|
||||
~LuaScriptContext()
|
||||
{
|
||||
Dispose();
|
||||
if (Lua != null)
|
||||
Game.RunAfterTick(Dispose);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user