Quantcast

Fix a bug with the have materials and have skill up check boxes.

John Pasula [01-25-11 - 18:03]
Fix a bug with the have materials and have skill up check boxes.
Filename
core.lua
diff --git a/core.lua b/core.lua
index babf777..bed70ed 100644
--- a/core.lua
+++ b/core.lua
@@ -1642,6 +1642,7 @@ do

 		-- Save the state of the "Have Materials" checkbox.
 		local have_materials = TradeSkillFrame.filterTbl.hasMaterials
+		-- Save the state of the "Have Skillup" checkbox.
 		local have_skillup = TradeSkillFrame.filterTbl.hasSkillUp

 		if MRTAPI and MRTAPI:PushFilterSelection() then
@@ -1651,7 +1652,7 @@ do
 				TradeSkillFrame.filterTbl.hasMaterials = false
 				TradeSkillOnlyShowMakeable(false)
 			end
-			if not Skillet and have_materials then
+			if not Skillet and have_skillup then
 				TradeSkillFrame.filterTbl.hasSkillUp = false
 				TradeSkillOnlyShowSkillUps(false)
 			end