diff options
Diffstat (limited to 'src/mame/drivers/menghong.cpp')
-rw-r--r-- | src/mame/drivers/menghong.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/menghong.cpp b/src/mame/drivers/menghong.cpp index ab9b0892416..3d478895151 100644 --- a/src/mame/drivers/menghong.cpp +++ b/src/mame/drivers/menghong.cpp @@ -294,7 +294,7 @@ uint32_t menghong_state::key_r() int mux = (m_pio >> 8) & 0x1f; uint8_t data = 0x3f; - for (int i = 0; i < 5; ++i) + for (int i = 0; i < m_keys.size(); ++i) if (!BIT(mux,i)) data = m_keys[i]->read(); |