Quantcast

Fixed an error that could occur when mousing over empty slots in the spellbook

James Whitehead II [04-15-09 - 20:53]
Fixed an error that could occur when mousing over empty slots in the spellbook
Filename
CliqueOptions.lua
diff --git a/CliqueOptions.lua b/CliqueOptions.lua
index 20d798e..81afd53 100644
--- a/CliqueOptions.lua
+++ b/CliqueOptions.lua
@@ -30,9 +30,14 @@ function Clique:OptionsOnLoad()
         button:SetScript("OnClick", onclick)
         button:SetScript("OnEnter", function(self)
 			local parent = self:GetParent()
-			SpellButton_OnEnter(parent)
+            if parent:IsEnabled() == 1 then
+                SpellButton_OnEnter(parent)
+            else
+                button:GetHighlightTexture():Hide()
+            end
 		end)
         button:SetScript("OnLeave", onleave)
+
 		button:Hide()
         self.spellbuttons[i] = button
     end