Quantcast

Use hookscript prior to setscript

Adrian L Lange [08-07-09 - 17:44]
Use hookscript prior to setscript
Filename
oUF_Reputation.lua
diff --git a/oUF_Reputation.lua b/oUF_Reputation.lua
index 35b1e75..49b70b0 100644
--- a/oUF_Reputation.lua
+++ b/oUF_Reputation.lua
@@ -52,8 +52,8 @@ local function enable(self, unit)

 		if(bar.Tooltip) then
 			bar:EnableMouse()
-			bar:SetScript('OnLeave', GameTooltip_OnLeave)
-			bar:SetScript('OnEnter', tooltip)
+			bar:HookScript('OnLeave', GameTooltip_OnLeave)
+			bar:HookScript('OnEnter', tooltip)
 		end

 		return true