From 82c4d85f0bb1beb60b03eef61156bbc120d59786 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Sat, 9 Aug 2014 00:10:20 +0400 Subject: [PATCH] fix for durability dashboard --- .../modules/dashboard/datapanels/durability.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ElvUI_SLE/modules/dashboard/datapanels/durability.lua b/ElvUI_SLE/modules/dashboard/datapanels/durability.lua index b60782d..f786e33 100644 --- a/ElvUI_SLE/modules/dashboard/datapanels/durability.lua +++ b/ElvUI_SLE/modules/dashboard/datapanels/durability.lua @@ -36,7 +36,11 @@ board[1].Status:SetScript("OnEvent", function( self, ...) end end - result = totalPerc/total + if total ~= 0 then + result = totalPerc/total + else + result = 0 + end if total > 0 then board[1].Text:SetFormattedText(displayString, result) -- 1.7.9.5