mirror of
https://github.com/holub/mame
synced 2025-05-21 05:08:54 +03:00
Another out-of-bounds error caught by randomizing memory.
This commit is contained in:
parent
38b9895e51
commit
dead7010da
@ -128,6 +128,8 @@ static VIDEO_UPDATE( cubeqst )
|
||||
memset(depth_buffer, 0xff, 512);
|
||||
|
||||
/* Process all the spans on this scanline */
|
||||
if (y < 256)
|
||||
{
|
||||
for (i = 0; i < num_entries; i += 2)
|
||||
{
|
||||
int color = 0, depth = 0;
|
||||
@ -171,6 +173,7 @@ static VIDEO_UPDATE( cubeqst )
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user