Skip to content
This repository has been archived by the owner on Jan 21, 2025. It is now read-only.

Revert to default saber if selected saber does not exist #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Firepal
Copy link
Contributor

@Firepal Firepal commented Sep 6, 2021

I noticed while working on a new saber (PR coming soon enough Nevermind, bad git operation deleted the branch) that saving in a version of the game that contains a new saber THEN opening a version of the game without the new saber causes the game to try to select a saber that doesn't exist, and an out-of-bounds array access exception is thrown.

This PR adds code that checks if the selected saber exists, and if it doesn't, reverts to default saber.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant