YMFM fixes.

This commit is contained in:
OBattler
2023-10-09 20:14:28 +02:00
parent 39d10899ac
commit dd5be819eb
2 changed files with 23 additions and 11 deletions

View File

@@ -1523,7 +1523,7 @@ void fm_engine_base<RegisterType>::engine_timer_expired(uint32_t tnum)
}
// Make sure the array does not go out of bounds to keep gcc happy
if(tnum < 2) {
if ((tnum < 2) || (sizeof(m_timer_running) > (2 * sizeof(uint8_t)))) {
// reset
m_timer_running[tnum] = false;
}