Skip to content

Commit 78bbf06

Browse files
committed
revert index vs order change, index fails if any of the sets are reordered
1 parent af86e9c commit 78bbf06

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Modules/Build.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,9 @@ function buildMode:Init(dbFileName, buildName, buildXML, convertBuild, importLin
287287
-- item, skill, and config sets have identical structure
288288
-- return id as soon as it's found
289289
local function findSetId(setOrderList, value, sets, setSpecialLinks)
290-
for setIndex, setOrder in pairs(setOrderList) do
290+
for _, setOrder in ipairs(setOrderList) do
291291
if value == (sets[setOrder].title or "Default") then
292-
return setIndex
292+
return setOrder
293293
else
294294
local linkMatch = string.match(value, "%{(%w+)%}")
295295
if linkMatch then

0 commit comments

Comments
 (0)