Skip to content

Commit

Permalink
Wrap setting missing raids to default in else
Browse files Browse the repository at this point in the history
  • Loading branch information
RealityWinner authored Feb 26, 2024
1 parent 99e21df commit bf77802
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ local function LoadVariables()
for instanceID in pairs(ns.RAIDS) do
ALCOptions.instances[instanceID] = true
end
end

-- Default new raids to true and dungeons to false.
for instanceID in pairs(ns.RAIDS) do
if ALCOptions.instances[instanceID] == nil then
ALCOptions.instances[instanceID] = true
else
-- Default new raids to true and dungeons to false.
for instanceID in pairs(ns.RAIDS) do
if ALCOptions.instances[instanceID] == nil then
ALCOptions.instances[instanceID] = true
end
end
end
end
Expand Down

0 comments on commit bf77802

Please sign in to comment.