We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fad0215 + 19760b4 commit 2a15c44Copy full SHA for 2a15c44
OpenRA.Game/Player.cs
@@ -116,7 +116,8 @@ public bool IsAlliedWith(Player p)
116
Lazy<ScriptPlayerInterface> luaInterface;
117
public void OnScriptBind(ScriptContext context)
118
{
119
- luaInterface = Exts.Lazy(() => new ScriptPlayerInterface(context, this));
+ if (luaInterface == null)
120
+ luaInterface = Exts.Lazy(() => new ScriptPlayerInterface(context, this));
121
}
122
123
public LuaValue this[LuaRuntime runtime, LuaValue keyValue]
0 commit comments