Fix room switching panic

This commit is contained in:
Joscha 2022-03-05 17:53:45 +01:00
parent 7ba8134eb0
commit 2400651483

View file

@ -360,7 +360,7 @@ impl Ui {
return;
}
let id = rooms[index & rooms.len()].clone();
let id = rooms[index % rooms.len()].clone();
self.room = Some(id);
}