diff ProspectMe.lua @ 40:97fe62d4385d Prospect Me 2

Fix for when too many containers are locked by the UI simultaneously. This could happen, for example, when using the built in "Clean Up Bags" feature.
author Vynn <mischivin@gmail.com>
date Thu, 10 Nov 2016 16:09:28 -0500
parents 31cf11210635
children b8686c36477f
line wrap: on
line diff
--- a/ProspectMe.lua	Thu Nov 10 16:01:43 2016 -0500
+++ b/ProspectMe.lua	Thu Nov 10 16:09:28 2016 -0500
@@ -186,8 +186,10 @@
 		ProspectMeDebug = Results
 	end
 	if event == "ITEM_LOCKED" then
-		local bag, slot = ...
-		ContainerID = select(10, GetContainerItemInfo(bag, slot))
+		if ParseResults then
+			local bag, slot = ...
+			ContainerID = select(10, GetContainerItemInfo(bag, slot))
+		end
 	end
 	if event == "TRADE_SKILL_LIST_UPDATE" or event == "LOOT_CLOSED" then
 		if ParseResults then