Skip to content
Snippets Groups Projects
Commit d2b5ba83 authored by ShadowNinja's avatar ShadowNinja
Browse files

Fix leaking global in texture pack menu

parent b9bc8dad
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment