From 4ea217ef7bdf2f15843a1c8b2eb8581b2a96814d Mon Sep 17 00:00:00 2001 From: ScottNZ Date: Thu, 5 Dec 2013 21:02:15 +1300 Subject: [PATCH] Provide an empty table to Internal.New if args is nil to keep NLua happy --- mods/ra/lua/openra.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mods/ra/lua/openra.lua b/mods/ra/lua/openra.lua index ae746d2db4..94a657726b 100644 --- a/mods/ra/lua/openra.lua +++ b/mods/ra/lua/openra.lua @@ -1,6 +1,9 @@ OpenRA = { } OpenRA.New = function(className, args) + if args == nil then + args = { } + end return Internal.New(className, args) end