Skip to content

Commit

Permalink
Fix crash when updating single mod
Browse files Browse the repository at this point in the history
  • Loading branch information
dandels committed Jul 11, 2023
1 parent f8684bf commit 9ebf16a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/main_ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ impl<'a> MainUI<'static> {
{
let ftable_lock = fv.read().await;
if let Some(i) = ftable_lock.state.selected() {
let files_lock = ftable_lock.file_index.file_id_map.read().await;
let fdata = files_lock.get(&(i as u64)).unwrap();
let files_lock = ftable_lock.file_index.files_sorted.read().await;
let fdata = files_lock.get(i).unwrap();
let lf_lock = fdata.local_file.read().await;
game = lf_lock.game.clone();
mod_id = lf_lock.mod_id;
Expand Down

0 comments on commit 9ebf16a

Please sign in to comment.