summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rubenwardy@gmail.com>2014-12-20 20:08:45 +0000
committerrubenwardy <rubenwardy@gmail.com>2014-12-20 20:08:45 +0000
commit2897fe334f478d9c80c70bb558fd83b5904e56d4 (patch)
tree69e530d6c1cbc1a5a69d9d3dff680f755d8e9319
parentf1dcbbb7c80d06ce2364ad717f77cc791eef5501 (diff)
Assignment to undeclared global
-rw-r--r--food/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/food/init.lua b/food/init.lua
index 19d019f..0cfc4e8 100644
--- a/food/init.lua
+++ b/food/init.lua
@@ -41,7 +41,7 @@ function food.support(group, item)
if idx <= 1 then
error("[Food Error] food.support - error in item name ('" .. item .. "')")
end
- mod = string.sub(item, 1, idx - 1)
+ local mod = string.sub(item, 1, idx - 1)
if not minetest.get_modpath(mod) then
if food.debug then
@@ -60,7 +60,7 @@ function food.support(group, item)
food.disable(group)
-- Add group
- g = {}
+ local g = {}
if data.groups then
for k, v in pairs(data.groups) do
g[k] = v