diff SecureMenu.lua @ 39:71e8b39f056e

Remove infinite loop on the external frame, which prevented crafting items
author contrebasse
date Fri, 29 Apr 2011 23:43:59 +0200
parents 5394c492850e
children 5a6091dddf69
line wrap: on
line diff
--- a/SecureMenu.lua	Fri Apr 29 23:38:43 2011 +0200
+++ b/SecureMenu.lua	Fri Apr 29 23:43:59 2011 +0200
@@ -328,10 +328,10 @@
 	for _,reagent in ipairs(A.data[itemID]) do
 		if A.data[itemID].spell then
 			-- Special spell
-			MenuFrame.state = menuAddItem(A.data[itemID].spell,itemID,reagent,A.data[itemID].spellLink) and state
+			MenuFrame.state = menuAddItem(A.data[itemID].spell,itemID,reagent,A.data[itemID].spellLink) and MenuFrame.state
 		else
 			-- Standard tradeskill spell UNTESTED
-			MenuFrame.state = menuAddItem(A.craft,itemID,reagent) and state
+			MenuFrame.state = menuAddItem(A.craft,itemID,reagent) and MenuFrame.state
 		end -- if
 	end -- for