mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Hopefully fix a problem bam.lua that I don't see locally
Error message is: configure.lua:6: bad argument #1 to 'setfenv' (number expected, got nil)
This commit is contained in:
parent
fb5c34da4e
commit
1ce581cab5
|
@ -3,7 +3,9 @@ function loadfile_(filename, env)
|
|||
local file
|
||||
if _VERSION == "Lua 5.1" then
|
||||
file = loadfile(filename)
|
||||
if file then
|
||||
setfenv(file, env)
|
||||
end
|
||||
else
|
||||
file = loadfile(filename, nil, env)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue