diff options
Diffstat (limited to 'src/mame/video/ppu2c0x.cpp')
-rw-r--r-- | src/mame/video/ppu2c0x.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/video/ppu2c0x.cpp b/src/mame/video/ppu2c0x.cpp index 17f17178d75..d6511dbb245 100644 --- a/src/mame/video/ppu2c0x.cpp +++ b/src/mame/video/ppu2c0x.cpp @@ -144,8 +144,8 @@ ppu2c0x_device::ppu2c0x_device(const machine_config &mconfig, device_type type, m_draw_phase(0), m_use_sprite_write_limitation(true) { - for (int i = 0; i < PPU_MAX_REG; i++) - m_regs[i] = 0; + for (auto & elem : m_regs) + elem = 0; memset(m_palette_ram, 0, ARRAY_LENGTH(m_palette_ram)); |