Skip to content

Commit

Permalink
Shouldn't have the same __metatable for two metatables
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Feb 6, 2018
1 parent 5134033 commit 4b58a52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/lua/core.lua
Expand Up @@ -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
Expand Down

0 comments on commit 4b58a52

Please sign in to comment.