diff options
Diffstat (limited to 'src/devices/bus/vectrex/slot.cpp')
-rw-r--r-- | src/devices/bus/vectrex/slot.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/bus/vectrex/slot.cpp b/src/devices/bus/vectrex/slot.cpp index fb9e9577ddd..a7322b0b994 100644 --- a/src/devices/bus/vectrex/slot.cpp +++ b/src/devices/bus/vectrex/slot.cpp @@ -135,10 +135,10 @@ static int vectrex_get_pcb_id(const char *slot) static const char *vectrex_get_slot(int type) { - for (int i = 0; i < ARRAY_LENGTH(slot_list); i++) + for (auto & elem : slot_list) { - if (slot_list[i].pcb_id == type) - return slot_list[i].slot_option; + if (elem.pcb_id == type) + return elem.slot_option; } return "vec_rom"; |