Fix leaking global in texture pack menu

This commit is contained in:
ShadowNinja 2014-11-20 14:57:40 -05:00 committed by Nils Dagsson Moskopp
parent adf3454250
commit d92c59d47d
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 4 additions and 4 deletions

View File

@ -17,10 +17,10 @@
--------------------------------------------------------------------------------
local function filter_texture_pack_list(list)
retval = {"None"}
for _,i in ipairs(list) do
if i~="base" then
table.insert(retval, i)
local retval = {"None"}
for _, item in ipairs(list) do
if item ~= "base" then
table.insert(retval, item)
end
end
return retval