diff --git a/src/wpc/sam.c b/src/wpc/sam.c index 542d38f82..4c0f21ac6 100644 --- a/src/wpc/sam.c +++ b/src/wpc/sam.c @@ -1413,7 +1413,7 @@ static MACHINE_INIT(sam) { core_set_pwm_output_type(CORE_MODOUT_LAMP0 + 100, 6, CORE_MODOUT_LED); // Ramp RGB LEDs core_set_pwm_output_type(CORE_MODOUT_SOL0 + 17 - 1, 5, CORE_MODOUT_BULB_89_20V_DC_WPC); core_set_pwm_output_type(CORE_MODOUT_SOL0 + 25 - 1, 8, CORE_MODOUT_BULB_89_20V_DC_WPC); - if (gn[strlen(gn)-1] == 'h') + if (Machine->gamedrv->name[strlen(Machine->gamedrv->name)-1] == 'h') core_set_pwm_output_type(CORE_MODOUT_LAMP0, 80, CORE_MODOUT_LED_STROBE_1_10MS); // Limited Edition: All LED else core_set_pwm_output_type(CORE_MODOUT_LAMP0 + 60 - 1, 3, CORE_MODOUT_LED_STROBE_1_10MS); // Pro: #555 except for bumper LEDs