mirror of
https://github.com/holub/mame
synced 2025-06-28 23:24:23 +03:00
calorie: fix spriteram oob access
This commit is contained in:
parent
cb43fe36d3
commit
e77e77d51c
@ -174,8 +174,6 @@ void calorie_state::video_start()
|
||||
|
||||
uint32_t calorie_state::screen_update_calorie(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
int x;
|
||||
|
||||
if (m_bg_bank & 0x10)
|
||||
{
|
||||
m_bg_tilemap->draw(screen, bitmap, cliprect, 0, 0);
|
||||
@ -186,7 +184,7 @@ uint32_t calorie_state::screen_update_calorie(screen_device &screen, bitmap_ind1
|
||||
m_fg_tilemap->draw(screen, bitmap, cliprect, TILEMAP_DRAW_OPAQUE, 0);
|
||||
}
|
||||
|
||||
for (x = 0x400; x >= 0; x -= 4)
|
||||
for (int x = m_sprites.bytes() - 4; x >= 0; x -= 4)
|
||||
{
|
||||
int xpos, ypos, tileno, color, flipx, flipy;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user