Quantcast

safe check for nameplates

Darthpred [09-01-16 - 06:38]
safe check for nameplates
Filename
ElvUI_SLE/modules/nameplates.lua
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