changeset 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 b9c2260bf1b4
children 55da4d54a2de
files ProspectMe.lua
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
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