From 13adc87e42b5c168cc0ff2609714a96a5fc61ea0 Mon Sep 17 00:00:00 2001 From: Darth Predator Date: Thu, 15 Jun 2017 15:06:31 +0300 Subject: [PATCH] Not nil as string or number This fixes #477 --- ElvUI_SLE/modules/bags/artifactpower.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElvUI_SLE/modules/bags/artifactpower.lua b/ElvUI_SLE/modules/bags/artifactpower.lua index e384d93..fc176cd 100644 --- a/ElvUI_SLE/modules/bags/artifactpower.lua +++ b/ElvUI_SLE/modules/bags/artifactpower.lua @@ -35,7 +35,7 @@ local function SlotUpdate(self, bagID, slotID) if (ID and slotLink) then local arcanePower = DB:GetAPForItem(slotLink) if E.db.sle.bags.artifactPower.short and arcanePower then arcanePower = E:ShortValue(arcanePower) end - if arcanePower ~= "0" then frame.artifactpowerinfo:SetText(arcanePower) end + if (arcanePower ~= "0" and arcanePower ~= 0) then frame.artifactpowerinfo:SetText(arcanePower) end end end elseif not E.db.sle.bags.artifactPower.enable and frame.artifactpowerinfo then -- 1.7.9.5