Merge pull request #688 from argonui/hotfixbag

Added "continue" for empty hotfix bags
This commit is contained in:
dscarpac 2024-05-20 19:06:49 -05:00 committed by GitHub
commit dedd50aedd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,7 +77,11 @@ function buildIndex()
-- process hotfix bags (and the additional playercards bag)
for _, hotfixBag in ipairs(getObjectsWithTag("AllCardsHotfix")) do
local hotfixData = hotfixBag.getData()
if not hotfixData.ContainedObjects then break end
-- if the bag is empty, continue with the next bag
if not hotfixData.ContainedObjects then
goto nextBag
end
for _, cardData in ipairs(hotfixData.ContainedObjects) do
-- process containers
@ -100,6 +104,7 @@ function buildIndex()
end
end
end
::nextBag::
end
buildSupplementalIndexes()