Skip to content

Commit

Permalink
fixed error when playing 3sid tune on uplay
Browse files Browse the repository at this point in the history
  • Loading branch information
WilfredC64 committed Jul 24, 2022
1 parent d361a31 commit 4aa35eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/player/hardsid_usb_device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,10 @@ impl HardsidUsbDevice {

pub fn set_sid_model(&mut self, dev_nr: i32, sid_socket: i32) {
if self.is_connected() {
if sid_socket >= self.sid_count {
return;
}

let mut new_dev_nr = dev_nr + sid_socket;
let physical_dev_nr = self.device_id[dev_nr as usize];

Expand Down

0 comments on commit 4aa35eb

Please sign in to comment.