Quantcast

Save unit back for modules

Scott Sibley [09-12-10 - 13:02]
Save unit back for modules
Filename
StarTip.lua
diff --git a/StarTip.lua b/StarTip.lua
index 677d20b..22d5d6f 100644
--- a/StarTip.lua
+++ b/StarTip.lua
@@ -515,6 +515,7 @@ function StarTip:OpenConfig()
 end

 function StarTip.OnTooltipSetUnit()
+	StarTip.unit = GameTooltip:GetUnit()
 	if not StarTip.justSetUnit then
 		for k, v in StarTip:IterateModules() do
 			if v.SetUnit and v:IsEnabled() then v:SetUnit() end