summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/ti99_peb/ti_fdc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/ti99_peb/ti_fdc.cpp')
-rw-r--r--src/devices/bus/ti99_peb/ti_fdc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/bus/ti99_peb/ti_fdc.cpp b/src/devices/bus/ti99_peb/ti_fdc.cpp
index c595bcea1e8..82585c424ce 100644
--- a/src/devices/bus/ti99_peb/ti_fdc.cpp
+++ b/src/devices/bus/ti99_peb/ti_fdc.cpp
@@ -333,8 +333,8 @@ void ti_fdc_device::set_floppy_motors_running(bool run)
m_fd1771->set_force_ready(run);
// Set all motors
- for (int i=0; i < 3; i++)
- if (m_floppy[i] != nullptr) m_floppy[i]->mon_w((run)? 0 : 1);
+ for (auto & elem : m_floppy)
+ if (elem != nullptr) elem->mon_w((run)? 0 : 1);
// The motor-on line also connects to the wait state logic
operate_ready_line();