fixed out-of-bounds access in amstrad_plus palette initialization (nw)

This commit is contained in:
Oliver Stöneberg 2013-07-19 15:12:34 +00:00
parent 24f0470150
commit 0b1a51cd92

View File

@ -319,7 +319,7 @@ PALETTE_INIT_MEMBER(amstrad_state,amstrad_plus)
{
int i;
palette_set_colors(machine(), 0, amstrad_palette, sizeof(amstrad_palette) / 3);
palette_set_colors(machine(), 0, amstrad_palette, ARRAY_LENGTH(amstrad_palette) / 3);
for ( i = 0; i < 0x1000; i++ )
{
int r, g, b;