From 10d9cfb0b02e65ea702db7c620aaee2c5262f44c Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Fri, 18 Sep 2009 18:03:24 +0200 Subject: [PATCH] Item is located until proven otherwise --- Broker_Equipment.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Broker_Equipment.lua b/Broker_Equipment.lua index 7d3c2ff..2aff3ae 100644 --- a/Broker_Equipment.lua +++ b/Broker_Equipment.lua @@ -57,8 +57,9 @@ local function GetTextureIndex(tex) end local function equipped(name) - local located for slot, location in next, GetEquipmentSetLocations(name) do + local located = true + if(location == 0) then located = not GetInventoryItemLink('player', slot) elseif(location ~= 1) then -- 1.7.9.5