Previous 199869 Revisions Next

r31579 Sunday 10th August, 2014 at 03:36:32 UTC by Oliver Stöneberg
added assert for index out-of-bounds access with queen (nw)
[src/mame/drivers]queen.c

trunk/src/mame/drivers/queen.c
r31578r31579
153153{
154154   queen_state *state = busdevice->machine().driver_data<queen_state>();
155155//  osd_printf_debug("PIIX4: read %d, %02X\n", function, reg);
156   assert(function >= 0 && function < ARRAY_LENGTH(state->m_piix4_config_reg));
156157   return state->m_piix4_config_reg[function][reg];
157158}
158159

Previous 199869 Revisions Next


© 1997-2024 The MAME Team