Name __metatable for wml.variables
[ci skip]
This commit is contained in:
parent
40706a8837
commit
5134033e30
1 changed files with 1 additions and 0 deletions
|
@ -235,6 +235,7 @@ if wesnoth.kernel_type() == "Game Lua Kernel" then
|
|||
wml.variable.get_all = wesnoth.get_all_vars
|
||||
|
||||
wml.variables = setmetatable({}, {
|
||||
__metatable = "WML variables",
|
||||
__index = function(_, key)
|
||||
return wesnoth.get_variable(key)
|
||||
end,
|
||||
|
|
Loading…
Add table
Reference in a new issue