summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/namcoio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/namcoio.cpp')
-rw-r--r--src/mame/machine/namcoio.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/machine/namcoio.cpp b/src/mame/machine/namcoio.cpp
index b8fb22fef40..4ac534279ce 100644
--- a/src/mame/machine/namcoio.cpp
+++ b/src/mame/machine/namcoio.cpp
@@ -181,8 +181,8 @@ void namcoio_device::device_start()
void namcoio_device::device_reset()
{
- for (int i = 0; i < 16; i++)
- m_ram[i] = 0;
+ for (auto & elem : m_ram)
+ elem = 0;
set_reset_line(PULSE_LINE);
}