Skip to content

Commit

Permalink
Fix issue where empty configs were not loaded properly (#7996)
Browse files Browse the repository at this point in the history
* fix #7984: Empty configs were not considered

* Revert undefined behaviour
  • Loading branch information
Wires77 authored Jul 28, 2024
1 parent 1706178 commit 8c05650
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Classes/ConfigTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,11 @@ function ConfigTabClass:Load(xml, fileName)
end
end
end

-- Catch special case of empty Config
if xml.empty then
self:NewConfigSet(1, "Default")
end
for index, node in ipairs(xml) do
if node.elem ~= "ConfigSet" then
if not self.configSets[1] then
Expand Down

0 comments on commit 8c05650

Please sign in to comment.