Skip to content

Commit e58d8a7

Browse files
committed
TT: make sure it gives return
1 parent 7fab10a commit e58d8a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ElvUI/Game/Shared/Modules/Tooltip/Tooltip.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ function TT:GameTooltipStatusBar_UpdateUnitHealth(bar)
658658
local tt = bar:GetParent()
659659
local unit = TT:GetUnitToken(tt)
660660
local ok, perc = pcall(UnitHealthPercent, unit, true, ScaleTo100)
661-
if ok then
661+
if ok and perc then
662662
bar.Text:SetFormattedText('%d', perc)
663663
else
664664
bar.Text:SetText('')

0 commit comments

Comments
 (0)