diff options
author | Oliver Stöneberg <firewave@users.noreply.github.com> | 2013-07-22 20:29:07 +0000 |
---|---|---|
committer | Oliver Stöneberg <firewave@users.noreply.github.com> | 2013-07-22 20:29:07 +0000 |
commit | c8a6f1d9c609ff4b239e2c190cfcbe4409aabc63 (patch) | |
tree | b10d914fd37fb6e1acd57438af2174702c2de7e1 /src/mame/video/system1.c | |
parent | d3f7ff6bf41a614855701aaa9b8fbf8012c18a5b (diff) |
added assert in src/mame/video/system1.c (nw)
Diffstat (limited to 'src/mame/video/system1.c')
-rw-r--r-- | src/mame/video/system1.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mame/video/system1.c b/src/mame/video/system1.c index 68a7bed7d0e..1bdb74ed9b6 100644 --- a/src/mame/video/system1.c +++ b/src/mame/video/system1.c @@ -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]; |