Skip to content

Commit

Permalink
Merge pull request #99 from LetsTimeIt/fix-woli-route-issues
Browse files Browse the repository at this point in the history
fix: Fixing route issues for now while finishing RouteManager
  • Loading branch information
srenauld authored Jan 12, 2021
2 parents 4195d9e + af71a97 commit f9a9803
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions DungeonTools.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2796,21 +2796,7 @@ function MDT:CreateDungeonSelectDropdown(frame)
MDT:UpdateDungeonDropDown()
end
function MDT:SanitizePresets()
for dungeonIdx,presets in pairs(db.presets) do
local out = {}
local firstIdx = 1
for presetIdx,preset in pairs(presets) do
if MDT:ValidateImportPreset(preset) == false and presetIdx ~= 1 and presetIdx ~= #presets then
if presetIdx == db.currentPreset[dungeonIdx] then
db.currentPreset[dungeonIdx] = 1
end
else
out[firstIdx] = MDT:DeepCopy(preset)
firstIdx = firstIdx + 1
end
end
db.presets[dungeonIdx] = MDT:DeepCopy(out)
end
MDT:EnsureDBTables()
end
---EnsureDBTables
---Makes sure profiles are valid and have their fields set
Expand Down

0 comments on commit f9a9803

Please sign in to comment.