projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9bc8da
)
Fix leaking global in texture pack menu
author
ShadowNinja
<shadowninja@minetest.net>
Thu, 20 Nov 2014 19:57:40 +0000
(14:57 -0500)
committer
ShadowNinja
<shadowninja@minetest.net>
Thu, 20 Nov 2014 20:37:20 +0000
(15:37 -0500)
builtin/mainmenu/tab_texturepacks.lua
patch
|
blob
|
history
diff --git
a/builtin/mainmenu/tab_texturepacks.lua
b/builtin/mainmenu/tab_texturepacks.lua
index 7844804156680d348489f5f256f790eabc7ad352..97f96fb1bcd45f3117821b44ab4f882971692021 100644
(file)
--- 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 i
tem ~=
"base" then
+ table.insert(retval, i
tem
)
end
end
return retval