diff options
Diffstat (limited to 'src/devices/machine/am9517a.cpp')
-rw-r--r-- | src/devices/machine/am9517a.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/devices/machine/am9517a.cpp b/src/devices/machine/am9517a.cpp index 734d542e37d..7f2ecb7e37f 100644 --- a/src/devices/machine/am9517a.cpp +++ b/src/devices/machine/am9517a.cpp @@ -557,13 +557,13 @@ void am9517a_device::device_start() m_out_dack_2_cb.resolve_safe(); m_out_dack_3_cb.resolve_safe(); - for (int i = 0; i < 4; i++) + for (auto & elem : m_channel) { - m_channel[i].m_address = 0; - m_channel[i].m_count = 0; - m_channel[i].m_base_address = 0; - m_channel[i].m_base_count = 0; - m_channel[i].m_mode = 0; + elem.m_address = 0; + elem.m_count = 0; + elem.m_base_address = 0; + elem.m_base_count = 0; + elem.m_mode = 0; } // state saving |