mirror of
https://github.com/CorsixTH/CorsixTH.git
synced 2025-07-23 04:13:01 +02:00
Fix previous commit.
This commit is contained in:
@@ -87,7 +87,7 @@ local templates = setmetatable({}, {__index = function(t, fname)
|
||||
local template = assert(loadstring(data, "@".. fname ..".htlua"))
|
||||
wrapper = function(env)
|
||||
local old_env = getfenv(template)
|
||||
caller_env = getfenv(2)
|
||||
local caller_env = getfenv(2)
|
||||
local env_wrap = setmetatable({}, {__index = function(t, k)
|
||||
return env[k] or caller_env[k]
|
||||
end})
|
||||
|
Reference in New Issue
Block a user