1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-10-02 09:14:27 +00:00

Fix crash when playing back w/o playback slot selected (#683)

This commit is contained in:
asimon-1 2024-04-15 18:12:23 -07:00 committed by GitHub
parent 716562c88c
commit c3ab2adbd7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -883,7 +883,7 @@ impl SaveStateSlot {
SaveStateSlot::S3 => Some(2),
SaveStateSlot::S4 => Some(3),
SaveStateSlot::S5 => Some(4),
_ => panic!("Invalid value in SaveStateSlot::into_idx: {}", self),
_ => None,
}
}
}
@ -906,7 +906,7 @@ impl RecordSlot {
RecordSlot::S3 => Some(2),
RecordSlot::S4 => Some(3),
RecordSlot::S5 => Some(4),
_ => panic!("Invalid value in RecordSlot::into_idx: {}", self),
_ => None,
}
}
}
@ -929,7 +929,7 @@ impl PlaybackSlot {
PlaybackSlot::S3 => Some(2),
PlaybackSlot::S4 => Some(3),
PlaybackSlot::S5 => Some(4),
_ => panic!("Invalid value in PlaybackSlot::into_idx: {}", self),
_ => None,
}
}
}