Merge pull request #688 from argonui/hotfixbag
Added "continue" for empty hotfix bags
This commit is contained in:
commit
dedd50aedd
@ -77,7 +77,11 @@ function buildIndex()
|
|||||||
-- process hotfix bags (and the additional playercards bag)
|
-- process hotfix bags (and the additional playercards bag)
|
||||||
for _, hotfixBag in ipairs(getObjectsWithTag("AllCardsHotfix")) do
|
for _, hotfixBag in ipairs(getObjectsWithTag("AllCardsHotfix")) do
|
||||||
local hotfixData = hotfixBag.getData()
|
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
|
for _, cardData in ipairs(hotfixData.ContainedObjects) do
|
||||||
-- process containers
|
-- process containers
|
||||||
@ -100,6 +104,7 @@ function buildIndex()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
::nextBag::
|
||||||
end
|
end
|
||||||
|
|
||||||
buildSupplementalIndexes()
|
buildSupplementalIndexes()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user