lua 5.2 compatibility #14

Merged
Kan18 merged 10 commits from attempt-lua52-compat into develop-1.8 2019-07-20 18:19:31 -04:00
Showing only changes of commit 7784204d5a - Show all commits

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