From 71cb348de5a809f96628f32e1cfa0d8c5b3c5fdc Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Thu, 18 Apr 2013 23:43:33 +0000 Subject: [PATCH] Fix ticket #237: Guard against nil aura table. git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@902 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- OvaleAura.lua | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/OvaleAura.lua b/OvaleAura.lua index 10f9ac5..f7d95ee 100644 --- a/OvaleAura.lua +++ b/OvaleAura.lua @@ -491,13 +491,15 @@ function OvaleAura:GetMyAuraOnAnyTarget(spellId, filter, excludingGUID) auraList[spellId].mine = nil end local aura = auraList[spellId].mine - if aura.start and (not start or aura.start < start) then - start = aura.start + if aura then + if aura.start and (not start or aura.start < start) then + start = aura.start + end + if aura.ending and (not ending or aura.ending > ending) then + ending = aura.ending + end + count = count + 1 end - if aura.ending and (not ending or aura.ending > ending) then - ending = aura.ending - end - count = count + 1 end end end -- 1.7.9.5