Skip to content

Commit

Permalink
jumping: fix crash at start
Browse files Browse the repository at this point in the history
  • Loading branch information
happppp committed Feb 24, 2024
1 parent 5ddc3ee commit 5606dc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mame/taito/rbisland.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 5606dc2

Please sign in to comment.