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/slotcarn.c (nw)
This commit is contained in:
parent
39ca5386f3
commit
104c251edb
@ -148,7 +148,7 @@ static MC6845_UPDATE_ROW( update_row )
|
||||
col |= 0x03;
|
||||
|
||||
col = state->m_ram_palette[col & 0x3ff];
|
||||
bitmap.pix32(y, x) = pens[col ? col : (lscnblk ? 8 : 0)];
|
||||
bitmap.pix32(y, x) = pens[col ? col & (NUM_PENS-1) : (lscnblk ? 8 : 0)];
|
||||
|
||||
x++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user