From cfce25d7dbcc6c13aad01f0f25baf715e56f1d71 Mon Sep 17 00:00:00 2001 From: Phanx Date: Wed, 21 Feb 2018 04:50:20 -0800 Subject: [PATCH] Fix for rare race condition error --- core.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core.lua b/core.lua index 5aaaa9e..3374548 100644 --- a/core.lua +++ b/core.lua @@ -629,7 +629,7 @@ function CoolLine:UNIT_EXITED_VEHICLE() self:UnregisterEvent("ACTIONBAR_UPDATE_COOLDOWN") for i = 1, #cooldowns do local frame = cooldowns[i] - if strmatch(frame.name, "vehicle") then + if frame and strmatch(frame.name, "vehicle") then ClearCooldown(nil, frame.name) end end