Division by zero fix

This commit is contained in:
Tercio Jose
2022-10-23 13:13:20 -03:00
parent 48b9bf0f3b
commit d97fe98a78
21 changed files with 604 additions and 552 deletions
+2 -3
View File
@@ -1,8 +1,7 @@
--local pointer to details object
local Details = _G._detalhes
local debugmode = true --print debug lines
local debugmode = false --print debug lines
local verbosemode = false --auto open the chart panel
local _
@@ -708,7 +707,7 @@ local PixelFrameOnEnter = function(self)
local onlyName = _detalhes:GetOnlyName(playerName)
GameCooltip2:AddLine(onlyName)
local classIcon, L, R, B, T = _detalhes:GetClassIcon (mythicDungeonCharts.ChartTable.Players [playerName] and mythicDungeonCharts.ChartTable.Players [playerName].Class)
local classIcon, L, R, B, T = _detalhes:GetClassIcon(mythicDungeonCharts.ChartTable.Players [playerName] and mythicDungeonCharts.ChartTable.Players [playerName].Class)
GameCooltip2:AddIcon (classIcon, 1, 1, 16, 16, L, R, B, T)
GameCooltip2:AddLine(Details:GetCurrentToKFunction()(nil, floor(dps)))