Item is located until proven otherwise
Adrian L Lange [09-18-09 - 16:03]
Item is located until proven otherwise
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