summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/tunhunt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/tunhunt.c')
-rw-r--r--src/mame/video/tunhunt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mame/video/tunhunt.c b/src/mame/video/tunhunt.c
index 331da04e12a..f0d3cfb32be 100644
--- a/src/mame/video/tunhunt.c
+++ b/src/mame/video/tunhunt.c
@@ -157,6 +157,7 @@ static void set_pens(running_machine &machine)
00 f0 f0 00 b0 00 f0 f0
*/
//const UINT8 *color_prom = machine.region( "proms" )->base();
+ tunhunt_state *state = machine.driver_data<tunhunt_state>();
int color;
int shade;
int i;
@@ -164,7 +165,7 @@ static void set_pens(running_machine &machine)
for( i=0; i<16; i++ )
{
- color = machine.generic.paletteram.u8[i];
+ color = state->m_generic_paletteram_8[i];
shade = 0xf^(color>>4);
color &= 0xf; /* hue select */