From 4452979d44f881df0b149b9876ab8f93a01b5fe4 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Mon, 13 Oct 2008 20:45:19 +0000 Subject: [PATCH] Fixed an error when mousing over an empty spellbook slot --- CliqueOptions.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CliqueOptions.lua b/CliqueOptions.lua index f808d93..b89534c 100644 --- a/CliqueOptions.lua +++ b/CliqueOptions.lua @@ -28,7 +28,10 @@ function Clique:OptionsOnLoad() button:RegisterForClicks("LeftButtonUp","RightButtonUp", "MiddleButtonUp", "Button4Up", "Button5Up") button:SetAllPoints(parent) button:SetScript("OnClick", onclick) - button:SetScript("OnEnter", SpellButton_OnEnter) + button:SetScript("OnEnter", function(self) + local parent = self:GetParent() + SpellButton_OnEnter(parent) + end) button:SetScript("OnLeave", onleave) button:Hide() self.spellbuttons[i] = button -- 1.7.9.5