aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2014-11-20 14:57:40 -0500
committerShadowNinja <shadowninja@minetest.net>2014-11-20 15:37:20 -0500
commitd2b5ba83b00ce00ff34f627da02f4eb4ceb86412 (patch)
tree4772eebe044ec1720e71318de63a39aab012ce7b /builtin
parentb9bc8dadb2ebdfdc05b1e3709c6173571de21efc (diff)
downloadminetest-d2b5ba83b00ce00ff34f627da02f4eb4ceb86412.tar.gz
minetest-d2b5ba83b00ce00ff34f627da02f4eb4ceb86412.tar.bz2
minetest-d2b5ba83b00ce00ff34f627da02f4eb4ceb86412.zip
Fix leaking global in texture pack menu
Diffstat (limited to 'builtin')
-rw-r--r--builtin/mainmenu/tab_texturepacks.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/builtin/mainmenu/tab_texturepacks.lua b/builtin/mainmenu/tab_texturepacks.lua
index 784480415..97f96fb1b 100644
--- a/builtin/mainmenu/tab_texturepacks.lua
+++ b/builtin/mainmenu/tab_texturepacks.lua
@@ -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