From fbb17b12dfa9a6d0a43757c6c9a6cc71f1f8e31c Mon Sep 17 00:00:00 2001 From: ckknight Date: Fri, 20 Jun 2008 15:10:20 +0000 Subject: [PATCH] - Fix an issue where oldStart could be nil --- Categories/Cast.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Categories/Cast.lua b/Categories/Cast.lua index d8b9209..49d27e4 100644 --- a/Categories/Cast.lua +++ b/Categories/Cast.lua @@ -191,6 +191,9 @@ local function UNIT_SPELLCAST_DELAYED(event, unit) local oldStart = castData[unit].startTime startTime = startTime / 1000 + if not oldStart then + oldStart = startTime + end castData[unit].startTime = startTime castData[unit].endTime = endTime / 1000 @@ -217,6 +220,9 @@ local function UNIT_SPELLCAST_CHANNEL_UPDATE(event, unit) local oldStart = castData[unit].startTime startTime = startTime / 1000 + if not oldStart then + oldStart = startTime + end castData[unit].startTime = startTime castData[unit].endTime = endTime / 1000 castData[unit].delay = castData[unit].delay + (oldStart - startTime)