jumping: fix crash at start

This commit is contained in:
hap 2024-02-24 22:53:36 +01:00
parent 5ddc3ee5bd
commit 5606dc201d

View File

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