loadstring > load
This commit is contained in:
@@ -490,7 +490,7 @@ function Util.loadTable(fname)
|
|||||||
if not fc then
|
if not fc then
|
||||||
return false, 'Unable to read file'
|
return false, 'Unable to read file'
|
||||||
end
|
end
|
||||||
local s, m = loadstring('return ' .. fc, fname)
|
local s, m = load('return ' .. fc, fname)
|
||||||
if s then
|
if s then
|
||||||
s, m = pcall(s)
|
s, m = pcall(s)
|
||||||
if s then
|
if s then
|
||||||
|
|||||||
Reference in New Issue
Block a user