Quantcast

Avoid nil unit IDs.

Johnny C. Lam [10-28-12 - 23:48]
Avoid nil unit IDs.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@632 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleAura.lua
diff --git a/OvaleAura.lua b/OvaleAura.lua
index b5b96ad..ec2b5fb 100644
--- a/OvaleAura.lua
+++ b/OvaleAura.lua
@@ -95,7 +95,7 @@ end
 function OvaleAura:UNIT_AURA(event, unitId)
 	if unitId == "player" then
 		self:UpdateAuras("player", self.playerGUID)
-	else
+	elseif unitId then
 		self:UpdateAuras(unitId)
 	end
 end