mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-24 02:44:17 +00:00
Fix crash when playing back w/o playback slot selected (#683)
This commit is contained in:
parent
716562c88c
commit
c3ab2adbd7
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue