From 5bb1d8d6f965c91cb47af2eb45a6df10dad25a39 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Fri, 25 Jun 2010 17:38:58 +0200 Subject: [PATCH] Fix odd issues with the updating --- Broker_Equipment.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Broker_Equipment.lua b/Broker_Equipment.lua index a6c938e..9c46f42 100644 --- a/Broker_Equipment.lua +++ b/Broker_Equipment.lua @@ -35,8 +35,9 @@ local function GetTextureIndex(tex) for i=INVSLOT_FIRST_EQUIPPED,INVSLOT_LAST_EQUIPPED do if GetInventoryItemTexture("player", i) then numicons = numicons + 1 end end for i=1,numicons do local texture, index = GetEquipmentSetIconInfo(i) - if texture:lower() == tex then return index end + if texture and texture:lower() == tex then return index end end + return 1 end local function ModifiedClick(button, name, icon) -- 1.7.9.5