fix Afterbirth+ nil index

This commit is contained in:
Buurazu authored and GitHub committed 2022-01-28 01:01:17 -05:00
1 parent 4a7cea87bc
commit e839827da0
1 file changed
+1 -1
+1 -1
View File
@@ -959,7 +959,7 @@ function EID:VoidRoomCheck()
if entity.SubType > 0 and not pickup:IsShopItem() and
(not REPENTANCE or pickup.OptionsPickupIndex == 0 or EID.VoidOptionIndexes[pickup.OptionsPickupIndex] == nil) then
numRunable = numRunable + 1
EID.VoidOptionIndexes[pickup.OptionsPickupIndex] = entity.SubType
if REPENTANCE then EID.VoidOptionIndexes[pickup.OptionsPickupIndex] = entity.SubType end
if (EID.itemConfig:GetCollectible(entity.SubType).Type ~= ItemType.ITEM_ACTIVE) then numVoidable = numVoidable + 1 end
end
end