remove needless copy

This commit is contained in:
Logan McNaughton
2026-01-20 13:21:44 +01:00
parent c5185e60c6
commit e1a6663bb5
+1 -2
View File
@@ -70,10 +70,9 @@ fn set_vertical_interrupt(device: &mut device::Device) {
}
fn set_current_line(device: &mut device::Device) {
let delay = device.vi.delay;
let next_vi = device::events::get_event(device, device::events::EVENT_TYPE_VI);
if let Some(next_vi) = next_vi {
device.vi.regs[VI_CURRENT_REG as usize] = ((delay
device.vi.regs[VI_CURRENT_REG as usize] = ((device.vi.delay
- (next_vi.count - device.cpu.cop0.regs[device::cop0::COP0_COUNT_REG as usize]))
/ device.vi.count_per_scanline)
as u32;