From 1d59b3625892d765267c92ad0e644fc7b36ad4ee Mon Sep 17 00:00:00 2001 From: ckaotik Date: Sun, 2 Jan 2011 14:23:37 +0100 Subject: [PATCH] * Fixed compare items not being available. This should solve auto destroy issues! --- Broker_Garbage-LootManager/core.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Broker_Garbage-LootManager/core.lua b/Broker_Garbage-LootManager/core.lua index 79f240c..ea4a47b 100644 --- a/Broker_Garbage-LootManager/core.lua +++ b/Broker_Garbage-LootManager/core.lua @@ -301,7 +301,8 @@ function BGLM.SelectiveLooting(autoloot) -- jwehgH"G$(&/&ยง$/!!" stupid . vs. : local _, _, quantity, quality, locked = GetLootSlotInfo(slot) local itemLink = GetLootSlotLink(slot) local itemID = BGLM:GetItemID(itemLink) - local compareTo = select(1, Broker_Garbage:GetVariable("cheapestItems")) + local compareTo = Broker_Garbage:GetVariable("cheapestItems") + compareTo = compareTo and compareTo[1] or nil if itemLink then -- needed because faulty loot slots or slots that contain money break things local value = Broker_Garbage:GetItemValue(itemLink, quantity) or 0 -- 1.7.9.5