Skip to content

Commit

Permalink
[Bugfix] Fix nil error when revising
Browse files Browse the repository at this point in the history
  • Loading branch information
Krealle committed Nov 8, 2024
1 parent 061f0ca commit cdc5cb9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Data/Revise.lua
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ function DB:Revise()
end
if CUF_DB.version < 13 then
local curLayout = DB.GetMasterLayout()
if CellDB.layouts[curLayout].CUFUnits then
if not CellDB.layouts[curLayout] then
curLayout = "default"
end
if CellDB.layouts[curLayout] and CellDB.layouts[curLayout].CUFUnits then
for unit, unitLayout in pairs(CellDB.layouts[curLayout].CUFUnits) do
if CUF_DB.blizzardFrames[unit] ~= nil then
CUF_DB.blizzardFrames[unit] = unitLayout.enabled
Expand Down

0 comments on commit cdc5cb9

Please sign in to comment.