mirror of
https://github.com/holub/mame
synced 2025-04-21 07:52:35 +03:00
jumping: fix crash at start
This commit is contained in:
parent
5ddc3ee5bd
commit
5606dc201d
@ -499,7 +499,7 @@ uint32_t jumping_state::screen_update(screen_device &screen, bitmap_ind16 &bitma
|
||||
for (int offs = m_spriteram.bytes() / 2 - 8; offs >= 0; offs -= 8)
|
||||
{
|
||||
int const tile = m_spriteram[offs];
|
||||
if (tile < m_gfxdecode->gfx(1)->elements())
|
||||
if (tile < m_gfxdecode->gfx(0)->elements())
|
||||
{
|
||||
int sy = ((m_spriteram[offs + 1] - 0xfff1) ^ 0xffff) & 0x1ff;
|
||||
if (sy > 400) sy = sy - 512;
|
||||
|
Loading…
Reference in New Issue
Block a user