Provide an empty table to Internal.New if args is nil to keep NLua happy
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
OpenRA = { }
|
OpenRA = { }
|
||||||
|
|
||||||
OpenRA.New = function(className, args)
|
OpenRA.New = function(className, args)
|
||||||
|
if args == nil then
|
||||||
|
args = { }
|
||||||
|
end
|
||||||
return Internal.New(className, args)
|
return Internal.New(className, args)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user