Remove the optional second argument to wesnoth.get_variable

It was only used in one place and didn't even function as advertised.
This commit is contained in:
Celtic Minstrel 2017-05-22 17:10:51 -04:00
parent c67d524ced
commit 9f0c677d02
2 changed files with 2 additions and 3 deletions

View file

@ -158,7 +158,7 @@ local variable_mt = {
}
local function get_variable_proxy(k)
local v = wesnoth.get_variable(k, true)
local v = wesnoth.get_variable(k)
if type(v) == "table" then
v = setmetatable({ __varname = k }, variable_mt)
end

View file

@ -861,8 +861,7 @@ bool luaW_pushvariable(lua_State *L, variable_access_const& v)
else if(v.exists_as_container())
{
lua_newtable(L);
if (luaW_toboolean(L, 2))
luaW_filltable(L, v.as_container());
luaW_filltable(L, v.as_container());
return true;
}
else