Quantcast

Actually pass the link to the weight function

James Whitehead II [08-14-08 - 15:19]
Actually pass the link to the weight function
Filename
DressToKill.lua
diff --git a/DressToKill.lua b/DressToKill.lua
index d73c53f..3219f61 100644
--- a/DressToKill.lua
+++ b/DressToKill.lua
@@ -129,7 +129,7 @@ local function scanFunction(weightFunction)
 			if not blacklist[mask] then
 				local equipped = DressToKill:EquipItem(slotId, mask, stash)
 				if equipped then
-					local link = GetInventoryItemLink(slotId)
+					local link = GetInventoryItemLink("player", slotId)
 					local score = weightFunction(link)
 					if score >= maxScore then
 						maxScore = score