From bf77802365ac25bb0986bddbdba6519056db9789 Mon Sep 17 00:00:00 2001 From: RealityWinner <31143064+RealityWinner@users.noreply.github.com> Date: Mon, 26 Feb 2024 13:31:56 -0500 Subject: [PATCH] Wrap setting missing raids to default in else --- Init.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Init.lua b/Init.lua index 4b30fb6..ea938ec 100644 --- a/Init.lua +++ b/Init.lua @@ -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