diff Modules/Crafting.lua @ 61:b24dbfbe2aef

Fixed an infinite loop when when adding items to the Skillet queue from the crafting interface.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Tue, 27 Jul 2010 11:56:00 -0700
parents 069f39f62104
children e7d287cc3b02
line wrap: on
line diff
--- a/Modules/Crafting.lua	Sun Jul 25 16:34:13 2010 -0700
+++ b/Modules/Crafting.lua	Tue Jul 27 11:56:00 2010 -0700
@@ -55,8 +55,9 @@
 		local _, skillId = strsplit(":", skillString)
 		
 		ItemAuditor:AddToQueue(skillId,tradeSkillIndex, data.queue)
+		index = index + 1
+		data = ItemAuditor:GetCraftingRow(index)
 		
-		local data = ItemAuditor:GetCraftingRow(index)
 	end
 end