fix array out of bounds access

This commit is contained in:
Michaël Banaan Ananas 2014-02-26 21:14:48 +00:00
parent d961bfd2e8
commit 17b7a9d36c

View File

@ -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)
{