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

This commit is contained in:
Oliver Stöneberg 2013-07-29 12:19:30 +00:00
parent 39ca5386f3
commit 104c251edb

View File

@ -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++;
}