summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/vectrex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/vectrex.cpp')
-rw-r--r--src/mame/machine/vectrex.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/machine/vectrex.cpp b/src/mame/machine/vectrex.cpp
index ca64a1cd23c..4959c3de5f1 100644
--- a/src/mame/machine/vectrex.cpp
+++ b/src/mame/machine/vectrex.cpp
@@ -306,8 +306,8 @@ DRIVER_INIT_MEMBER(vectrex_state,vectrex)
{
m_imager_angles = unknown_game_angles;
m_beam_color = rgb_t::white;
- for (int i = 0; i < ARRAY_LENGTH(m_imager_colors); i++)
- m_imager_colors[i] = rgb_t::white;
+ for (auto & elem : m_imager_colors)
+ elem = rgb_t::white;
/*
* Minestorm's PRNG doesn't work with a 0 seed (mines in the first