# HG changeset patch
# User Vynn <mischivin@gmail.com>
# Date 1478812168 18000
# Node ID 97fe62d4385d3e06afc2ad3066db0cda260155ab
# Parent  b9c2260bf1b44703f22b0b46fc4c6671108b36f8
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.

diff -r b9c2260bf1b4 -r 97fe62d4385d ProspectMe.lua
--- 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