summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/gunsmoke.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/gunsmoke.c')
-rw-r--r--src/mame/video/gunsmoke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/video/gunsmoke.c b/src/mame/video/gunsmoke.c
index 11bd941bf55..543f74b9299 100644
--- a/src/mame/video/gunsmoke.c
+++ b/src/mame/video/gunsmoke.c
@@ -143,7 +143,7 @@ static void draw_sprites( running_machine &machine, bitmap_ind16 &bitmap, const
UINT8 *spriteram = state->m_spriteram;
int offs;
- for (offs = state->m_spriteram_size - 32; offs >= 0; offs -= 32)
+ for (offs = state->m_spriteram.bytes() - 32; offs >= 0; offs -= 32)
{
int attr = spriteram[offs + 1];
int bank = (attr & 0xc0) >> 6;