Skip to content
This repository has been archived by the owner on Jun 2, 2021. It is now read-only.

Commit

Permalink
Bugfix: Don't crash when frames lack castbar table (#467)
Browse files Browse the repository at this point in the history
Bugfix: Don't crash when frames lack castbar table
  • Loading branch information
Crumdidlyumshis authored May 27, 2019
2 parents 533587b + a9f4bf4 commit 906a01c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ElvUI/modules/unitframes/elements/castbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function UF:Configure_Castbar(frame)
local castbar = frame.Castbar
local db = frame.db

if db.castbar.enable then
if db.castbar and db.castbar.enable then
if not frame:IsElementEnabled("Castbar") then
frame:EnableElement("Castbar")
end
Expand Down

0 comments on commit 906a01c

Please sign in to comment.