Fix tooltip display of a value instead of a spell on mouseover.
Johnny C. Lam [11-15-13 - 19:55]
Fix tooltip display of a value instead of a spell on mouseover.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1160 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleIcone.lua b/OvaleIcone.lua
index 7c1e43a..8ead071 100644
--- a/OvaleIcone.lua
+++ b/OvaleIcone.lua
@@ -247,7 +247,7 @@ function OvaleIcone_OnEnter(self)
if self.spellId then
GameTooltip:AddLine(OvaleSpellBook:GetSpellName(self.spellId), 0.5, 1, 0.75)
elseif self.value then
- local value = (value < math.huge) and tostring(value) or "infinity"
+ local value = (self.value < math.huge) and tostring(self.value) or "infinity"
GameTooltip:AddLine(value, 0.5, 1, 0.75)
end
if next(Ovale.casesACocher) or next(Ovale.listes) then