diff --git a/OpenRA.Game/Actor.cs b/OpenRA.Game/Actor.cs index 94b3da5818..2b208dd522 100644 --- a/OpenRA.Game/Actor.cs +++ b/OpenRA.Game/Actor.cs @@ -265,7 +265,8 @@ namespace OpenRA Lazy luaInterface; public void OnScriptBind(ScriptContext context) { - luaInterface = Exts.Lazy(() => new ScriptActorInterface(context, this)); + if (luaInterface == null) + luaInterface = Exts.Lazy(() => new ScriptActorInterface(context, this)); } public LuaValue this[LuaRuntime runtime, LuaValue keyValue]