Fix a warning triggered by a variable which was not declared as local.

This commit is contained in:
sys4-fr 2016-07-30 22:19:40 +02:00
parent dbb7b9bb65
commit 13f02494d0

View File

@ -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)}