summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/decmxc06.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/decmxc06.cpp')
-rw-r--r--src/mame/video/decmxc06.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/video/decmxc06.cpp b/src/mame/video/decmxc06.cpp
index 4ee3e9e868c..6d2a1522dfa 100644
--- a/src/mame/video/decmxc06.cpp
+++ b/src/mame/video/decmxc06.cpp
@@ -105,7 +105,7 @@ void deco_mxc06_device::draw_sprites(screen_device &screen, bitmap_ind16 &bitmap
int chainoffs = priority ? offs - ((w - 1) * 4) : offs; // or bandit breaks
for (int x = 0; x < w; x++)
{
- if (chainoffs < size)
+ if ((chainoffs < size) && (chainoffs >= 0))
{
// maybe, birdie try appears to specify the base code for each part..
u16 code = spriteram[chainoffs + 1] & 0x1fff;