Shouldn't have the same __metatable for two metatables

This commit is contained in:
Celtic Minstrel 2018-02-06 00:15:22 -05:00 committed by GitHub
parent 5134033e30
commit 4b58a52140
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -286,7 +286,7 @@ if wesnoth.kernel_type() == "Game Lua Kernel" then
end
local root_variable_mt = {
__metatable = "WML variables",
__metatable = "WML variables proxy",
__index = function(t, k) return get_variable_proxy(k) end,
__newindex = function(t, k, v)
if type(v) == "function" then