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:
parent
c67d524ced
commit
9f0c677d02
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue