loadstring > load

This commit is contained in:
Kan18 2019-07-19 17:37:18 -04:00 committed by GitHub
parent 13c9073c4a
commit 7784204d5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -490,7 +490,7 @@ function Util.loadTable(fname)
if not fc then
return false, 'Unable to read file'
end
local s, m = loadstring('return ' .. fc, fname)
local s, m = load('return ' .. fc, fname)
if s then
s, m = pcall(s)
if s then