From 5606dc201d044ef8451fd60593f98c219c82b3bd Mon Sep 17 00:00:00 2001 From: hap Date: Sat, 24 Feb 2024 22:53:36 +0100 Subject: [PATCH] jumping: fix crash at start --- src/mame/taito/rbisland.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mame/taito/rbisland.cpp b/src/mame/taito/rbisland.cpp index bb5a8dd6d25..f97b57765c0 100644 --- a/src/mame/taito/rbisland.cpp +++ b/src/mame/taito/rbisland.cpp @@ -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;