Merge pull request #5165 from cam900/patch-99

decmxc06.cpp : Minor fixes
This commit is contained in:
R. Belmont 2019-06-05 22:13:41 -04:00 committed by GitHub
commit 70ddaa3888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;