fixed array out-of-bounds access in src/mame/drivers/merit.c (nw)

This commit is contained in:
Oliver Stöneberg 2013-07-22 11:40:05 +00:00
parent 1f2fd69115
commit 34847974eb

View File

@ -295,7 +295,7 @@ static MC6845_UPDATE_ROW( update_row )
col |= 0x03;
col = state->m_ram_palette[col & 0x3ff];
bitmap.pix32(y, x) = pens[col ? col : (state->m_lscnblk ? 8 : 0)];
bitmap.pix32(y, x) = pens[col ? col & (NUM_PENS-1) : (state->m_lscnblk ? 8 : 0)];
x++;
}