summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/ti99_peb/hfdc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/ti99_peb/hfdc.cpp')
-rw-r--r--src/devices/bus/ti99_peb/hfdc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/bus/ti99_peb/hfdc.cpp b/src/devices/bus/ti99_peb/hfdc.cpp
index e1def78eedb..dddc49a4aeb 100644
--- a/src/devices/bus/ti99_peb/hfdc.cpp
+++ b/src/devices/bus/ti99_peb/hfdc.cpp
@@ -802,8 +802,8 @@ void myarc_hfdc_device::set_floppy_motors_running(bool run)
}
// Set all motors
- for (int i=0; i < 4; i++)
- if (m_floppy_unit[i] != nullptr) m_floppy_unit[i]->mon_w((run)? 0 : 1);
+ for (auto & elem : m_floppy_unit)
+ if (elem != nullptr) elem->mon_w((run)? 0 : 1);
}
/*