Skip to content

Game crashes if you remove a card tied to Mysterious Pyramids #48

Description

@SineSwiper

I ran into an opportunity to remove a few cards, though a quest, that I no longer wanted that were tied to relics. One of them was tied to Mysterious Pyramids. I'm not sure if I played a battle after that, but as soon as I continued my game from a save, and tried to enter a battle, it will consistently crash with:

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.rangeCheck(ArrayList.java:653) ~[?:1.8.0_144]
	at java.util.ArrayList.get(ArrayList.java:429) ~[?:1.8.0_144]
	at com.evacipated.cardcrawl.mod.hubris.relics.MysteriousPyramids.onSave(MysteriousPyramids.java:62) ~[Hubris.jar:?]
	at com.evacipated.cardcrawl.mod.hubris.relics.MysteriousPyramids.onSave(MysteriousPyramids.java:23) ~[Hubris.jar:?]
	at basemod.abstracts.CustomSavable.onSaveRaw(CustomSavable.java:33) ~[BaseMod.jar:?]
	at basemod.patches.com.megacrit.cardcrawl.saveAndContinue.SaveFile.ConstructSaveFilePatch.Prefix(ConstructSaveFilePatch.java:33) ~[BaseMod.jar:?]
	at com.megacrit.cardcrawl.saveAndContinue.SaveFile.<init>(SaveFile.java:225) ~[?:?]
	at com.megacrit.cardcrawl.helpers.SaveHelper.saveIfAppropriate(SaveHelper.java:278) ~[desktop-1.0.jar:?]
	at com.megacrit.cardcrawl.dungeons.AbstractDungeon.nextRoomTransition(AbstractDungeon.java:2169) ~[?:?]
	at com.megacrit.cardcrawl.dungeons.AbstractDungeon.nextRoomTransition(AbstractDungeon.java:2094) ~[?:?]
	at com.megacrit.cardcrawl.dungeons.AbstractDungeon.updateFading(AbstractDungeon.java:2790) ~[?:?]
	at com.megacrit.cardcrawl.dungeons.AbstractDungeon.update(AbstractDungeon.java:2479) ~[?:?]
	at com.megacrit.cardcrawl.core.CardCrawlGame.update(CardCrawlGame.java:871) ~[?:?]
	at com.megacrit.cardcrawl.core.CardCrawlGame.render(CardCrawlGame.java:422) [?:?]
	at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:225) [?:?]
	at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:126) [desktop-1.0.jar:?]```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions