Quantcast

Made some fixes for slot filtering.

pschifferer [05-10-09 - 05:07]
Made some fixes for slot filtering.
Filename
CauldronMainUI.lua
CauldronTradeskill.lua
diff --git a/CauldronMainUI.lua b/CauldronMainUI.lua
index cc26aed..8e6788f 100644
--- a/CauldronMainUI.lua
+++ b/CauldronMainUI.lua
@@ -1662,7 +1662,7 @@ function Cauldron:InvSlotDropDown_Initialize(level)
 	local slots = Cauldron:GetSlots(Cauldron.vars.playername, skillName);

 	for name, _ in pairs(slots) do
-		if slot ~= "" then
+		if name ~= "" then
 			local slot = {
 				text = _G[name],
 				checked = Cauldron.db.realm.userdata[Cauldron.vars.playername].skills[skillName].window.slots[name],
diff --git a/CauldronTradeskill.lua b/CauldronTradeskill.lua
index a158665..c0f8b1b 100644
--- a/CauldronTradeskill.lua
+++ b/CauldronTradeskill.lua
@@ -133,9 +133,9 @@ function Cauldron:UpdateSkills()

 				-- populate the slot list
 				if slot and (slot ~= "") then
-					if not skillDB.window.slots[slot] then
+--					if not skillDB.window.slots[slot] then
 						skillDB.window.slots[slot] = true;
-					end
+--					end
 				end

 				-- populate the reagent list