From 68e5bf052312e4738fe88a309210f54d6d188ce1 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Thu, 1 Sep 2016 09:38:23 +0300 Subject: [PATCH] safe check for nameplates --- ElvUI_SLE/modules/nameplates.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElvUI_SLE/modules/nameplates.lua b/ElvUI_SLE/modules/nameplates.lua index 3c14817..db84523 100644 --- a/ElvUI_SLE/modules/nameplates.lua +++ b/ElvUI_SLE/modules/nameplates.lua @@ -70,7 +70,7 @@ function N:UpdateCount(event,unit,force) if N.db.targetcount and plate.targetcount then if T.IsInRaid() or T.IsInGroup() then for name, unitid in T.pairs(N.GroupMembers) do - if not T.UnitIsUnit(unitid,"player") then + if not T.UnitIsUnit(unitid,"player") and plate.unit then target = T.format("%starget", unitid) plate.guid = T.UnitGUID(plate.unit) if plate.guid and T.UnitExists(target) then -- 1.7.9.5