From d4938554818aa71aceb0d360f33c6cfd42f67008 Mon Sep 17 00:00:00 2001
From: Rui <Rui914@users.noreply.github.com>
Date: Thu, 3 Sep 2015 01:09:48 +0900
Subject: [PATCH] Small fixes of minetest.has_feature

---
 builtin/game/features.lua | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/builtin/game/features.lua b/builtin/game/features.lua
index f082b0db8..a5f17e540 100644
--- a/builtin/game/features.lua
+++ b/builtin/game/features.lua
@@ -12,9 +12,9 @@ core.features = {
 
 function core.has_feature(arg)
 	if type(arg) == "table" then
-		missing_features = {}
-		result = true
-		for ft, _ in pairs(arg) do
+		local missing_features = {}
+		local result = true
+		for ftr in pairs(arg) do
 			if not core.features[ftr] then
 				missing_features[ftr] = true
 				result = false
-- 
GitLab