summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/ironhors.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/ironhors.c')
-rw-r--r--src/mame/video/ironhors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/video/ironhors.c b/src/mame/video/ironhors.c
index 29bf8b898c3..0f5285ecc30 100644
--- a/src/mame/video/ironhors.c
+++ b/src/mame/video/ironhors.c
@@ -163,7 +163,7 @@ static void draw_sprites( running_machine &machine, bitmap_ind16 &bitmap, const
else
sr = state->m_spriteram2;
- for (offs = 0; offs < state->m_spriteram_size; offs += 5)
+ for (offs = 0; offs < state->m_spriteram.bytes(); offs += 5)
{
int sx = sr[offs + 3];
int sy = sr[offs + 2];
@@ -275,7 +275,7 @@ static void farwest_draw_sprites( running_machine &machine, bitmap_ind16 &bitmap
UINT8 *sr = state->m_spriteram2;
UINT8 *sr2 = state->m_spriteram;
- for (offs = 0; offs < state->m_spriteram_size; offs += 4)
+ for (offs = 0; offs < state->m_spriteram.bytes(); offs += 4)
{
int sx = sr[offs + 2];
int sy = sr[offs + 1];