mirror of
https://github.com/holub/mame
synced 2025-04-19 23:12:11 +03:00
fix array out of bounds access
This commit is contained in:
parent
d961bfd2e8
commit
17b7a9d36c
@ -824,7 +824,8 @@ void z80dart_channel::control_write(UINT8 data)
|
||||
LOG(("Z80DART \"%s\" Channel %c : Control Register Write '%02x'\n", m_owner->tag(), 'A' + m_index, data));
|
||||
|
||||
// write data to selected register
|
||||
m_wr[reg] = data;
|
||||
if (reg < 6)
|
||||
m_wr[reg] = data;
|
||||
|
||||
if (reg != 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user