summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/isa/cga.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/isa/cga.cpp')
-rw-r--r--src/devices/bus/isa/cga.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/bus/isa/cga.cpp b/src/devices/bus/isa/cga.cpp
index 3c1cd22cab7..8f99ddc0792 100644
--- a/src/devices/bus/isa/cga.cpp
+++ b/src/devices/bus/isa/cga.cpp
@@ -1593,9 +1593,9 @@ void isa8_cga_pc1512_device::device_reset()
m_write = 0x0f;
m_read = 0;
m_mc6845_address = 0;
- for ( int i = 0; i < 31; i++ )
+ for (auto & elem : m_mc6845_locked_register)
{
- m_mc6845_locked_register[i] = 0;
+ elem = 0;
}
membank("bank1")->set_base(&m_vram[isa8_cga_pc1512_device::vram_offset[0]]);