From fe8160a4674a12d6d17128369689fd99eaa79089 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Mon, 22 Sep 2014 15:15:13 +0200 Subject: [PATCH] Make sure we don't try to divide by zero --- oUF_P3lim.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua index 036049d..b89ee82 100644 --- a/oUF_P3lim.lua +++ b/oUF_P3lim.lua @@ -26,7 +26,7 @@ local function PostUpdateHealth(element, unit, cur, max) local ScrollFrame = element.__owner.Portrait.scrollFrame if(element.disconnected) then - cur = 0 + cur, max = 0, 1 end local offset = -(230 * (1 - cur / max)) -- 1.7.9.5