Quantcast

Minor clean

unknown [11-28-09 - 20:10]
Minor clean
Filename
Molinari.lua
diff --git a/Molinari.lua b/Molinari.lua
index 2269f1b..3de5456 100644
--- a/Molinari.lua
+++ b/Molinari.lua
@@ -43,9 +43,10 @@ GameTooltip:HookScript('OnTooltipSetItem', function(self)
 	if(item and IsAltKeyDown() and not InCombatLockdown()) then
 		local spell = spells[GameTooltipTextLeft2:GetText()] or Disenchantable(item)
 		if(spell) then
-			button:SetAttribute('macrotext', macro:format(spell, GetMouseFocus():GetParent():GetID(), GetMouseFocus():GetID()))
-			button:SetAllPoints(GetMouseFocus())
-			button:SetParent(GetMouseFocus())
+			local slot = GetMouseFocus()
+			button:SetAttribute('macrotext', macro:format(spell, slot:GetParent():GetID(), slot:GetID()))
+			button:SetAllPoints(slot)
+			button:SetParent(slot)
 			button:Show()
 		end
 	end