diff --git a/OpenRA.Game/Player.cs b/OpenRA.Game/Player.cs index d68ee59fc8..96f9f91453 100644 --- a/OpenRA.Game/Player.cs +++ b/OpenRA.Game/Player.cs @@ -116,7 +116,8 @@ namespace OpenRA Lazy luaInterface; public void OnScriptBind(ScriptContext context) { - luaInterface = Exts.Lazy(() => new ScriptPlayerInterface(context, this)); + if (luaInterface == null) + luaInterface = Exts.Lazy(() => new ScriptPlayerInterface(context, this)); } public LuaValue this[LuaRuntime runtime, LuaValue keyValue]