Closed Dolu89 closed 4 years ago
This would prevent this error on Reset days and when someone purges their own data...
if t[brk[bracket]] and t[brk[bracket]][3] and t[brk[bracket]][4] then
local btm_break_point_honor = math.max(t[brk[bracket]][3], tonumber(t[brk[bracket]][4]) or 0)
local top_break_point_honor = 0
if brk[bracket + 1] then -- do we even have next bracket?
top_break_point_honor = math.max(t[brk[bracket + 1]][3], tonumber(t[brk[bracket + 1]][4]) or 0)
else
top_break_point_honor = math.max(t[1][3], tonumber(t[1][4]) or 0)
end
if curHonor == top_break_point_honor then
inside_br_progress = 1
else
inside_br_progress = (curHonor - btm_break_point_honor)/(top_break_point_honor - btm_break_point_honor)
end
end
Hello I have installed this addon for the first time today and I got this error on trying to open it from minimap icon