Fix leaking global in texture pack menu
authorShadowNinja <shadowninja@minetest.net>
Thu, 20 Nov 2014 19:57:40 +0000 (14:57 -0500)
committerShadowNinja <shadowninja@minetest.net>
Thu, 20 Nov 2014 20:37:20 +0000 (15:37 -0500)
builtin/mainmenu/tab_texturepacks.lua

index 7844804156680d348489f5f256f790eabc7ad352..97f96fb1bcd45f3117821b44ab4f882971692021 100644 (file)
 
 --------------------------------------------------------------------------------
 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