From 19760b44cc2f129bf32e892849fa5798115ebc4e Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 12 Oct 2014 10:21:54 +1300 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20regenerate=20the=20lua=20player?= =?UTF-8?q?=20bindings=20each=20query.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OpenRA.Game/Player.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]