Name __metatable for wml.variables

[ci skip]
This commit is contained in:
Charles Dang 2018-02-06 16:10:29 +11:00
parent 40706a8837
commit 5134033e30

View file

@ -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,