lua load_script encoding fix
This commit is contained in:
parent
6ee63eb717
commit
7ae5c4e3a1
@ -42,7 +42,7 @@ function load_script(path, nocache)
|
||||
error("script '"..filename.."' not found in '"..packname.."'")
|
||||
end
|
||||
|
||||
local script, err = loadfile(file.resolve(path))
|
||||
local script, err = load(file.read(path), path)
|
||||
if script == nil then
|
||||
error(err)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user