added assert in src/mame/video/system1.c (nw)

This commit is contained in:
Oliver Stöneberg 2013-07-22 20:29:07 +00:00
parent d3f7ff6bf4
commit c8a6f1d9c6

View File

@ -514,6 +514,7 @@ void system1_state::video_update_common(screen_device &screen, bitmap_ind16 &bit
for (x = cliprect.min_x; x <= cliprect.max_x; x++)
{
int bgx = ((x - bgxscroll) / 2) & 0x1ff;
assert((x / 2) >= 0 && (x / 2) < 256);
UINT16 fgpix = fgbase[x / 2];
UINT16 bgpix = bgbase[bgx >> 8][bgx & 0xff];
UINT16 sprpix = sprbase[x];