summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author cam900 <dbtlrchl@naver.com>2019-06-06 10:30:53 +0900
committer GitHub <noreply@github.com>2019-06-06 10:30:53 +0900
commit9924aaa3c79f18a5de6f16f723280918858eb988 (patch)
tree14f8e520d022ed92fc9497cb24a46511cbb316bf
parent4aa448c758cd226f6bb7bdd01d1fb17a5f9d3af7 (diff)
decmxc06.cpp : Minor fixes
-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;