diff options
author | sys4-fr <sys4@free.fr> | 2016-07-30 22:19:40 +0200 |
---|---|---|
committer | sys4-fr <sys4@free.fr> | 2016-07-30 22:19:40 +0200 |
commit | 13f02494d0c45e2cd93f4fe15ca3545c93785a85 (patch) | |
tree | ea3b97e005e1b68d1f6270229353124b195bc66e | |
parent | dbb7b9bb65f40906c53afa2f6a4ce29b006b5c24 (diff) |
Fix a warning triggered by a variable which was not declared as local.
-rw-r--r-- | food/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/food/init.lua b/food/init.lua index 4afa950..220b25e 100644 --- a/food/init.lua +++ b/food/init.lua @@ -98,7 +98,7 @@ function minetest.register_node(name, def) end function food.strip_name(name) - res = name:gsub('%"', '') + local res = name:gsub('%"', '') if res:sub(1, 1) == ":" then res = res:sub(2, #res) --table.concat{res:sub(1, 1-1), "", res:sub(1+1)} |