diff options
Diffstat (limited to 'src/devices/sound/ymf271.cpp')
-rw-r--r-- | src/devices/sound/ymf271.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/sound/ymf271.cpp b/src/devices/sound/ymf271.cpp index c10420af8a4..1d0eec4fa5d 100644 --- a/src/devices/sound/ymf271.cpp +++ b/src/devices/sound/ymf271.cpp @@ -1726,10 +1726,10 @@ void ymf271_device::device_start() void ymf271_device::device_reset() { - for (int i = 0; i < 48; i++) + for (auto & elem : m_slots) { - m_slots[i].active = 0; - m_slots[i].volume = 0; + elem.active = 0; + elem.volume = 0; } // reset timers and IRQ |