Add missing 'local' keyword on internal helper functions to prevent overwriting
This commit is contained in:
parent
446090b6d8
commit
082dc318e4
@ -268,7 +268,7 @@
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function recurse(value)
|
local function recurse(value)
|
||||||
if type(value) == "table" then
|
if type(value) == "table" then
|
||||||
table.foreachi(value, function(v)
|
table.foreachi(value, function(v)
|
||||||
recurse(v)
|
recurse(v)
|
||||||
@ -558,7 +558,7 @@
|
|||||||
|
|
||||||
-- process all of the values, according to the data type
|
-- process all of the values, according to the data type
|
||||||
local result = {}
|
local result = {}
|
||||||
function recurse(value)
|
local function recurse(value)
|
||||||
if type(value) == "table" then
|
if type(value) == "table" then
|
||||||
table.foreachi(value, function (value)
|
table.foreachi(value, function (value)
|
||||||
recurse(value)
|
recurse(value)
|
||||||
|
Loading…
Reference in New Issue
Block a user