fix lacal variable shadowing function param

master
shivajiva101 2018-04-03 00:17:06 +01:00 committed by GitHub
parent f8bca73f2d
commit 40ac537d75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -341,10 +341,10 @@ local function display_record(name, p_name)
local names_hash = {}
local names = {}
for i = 1, #r do
local name = r[i].name
if not names_hash[name] then
names_hash[name] = true
names[#names + 1] = name
local record_name = r[i].name
if not names_hash[record_name] then
names_hash[record_name] = true
names[#names + 1] = record_name
end
end
minetest.chat_send_player(name, "Names: " .. table.concat(names, ", "))