mirror of
https://github.com/holub/mame
synced 2025-04-22 00:11:58 +03:00
fixed array out-of-bounds access in src/mame/drivers/merit.c (nw)
This commit is contained in:
parent
1f2fd69115
commit
34847974eb
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user