summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/mexico86.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/mexico86.c')
-rw-r--r--src/mame/drivers/mexico86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/mexico86.c b/src/mame/drivers/mexico86.c
index 6b66096d089..d498995ef25 100644
--- a/src/mame/drivers/mexico86.c
+++ b/src/mame/drivers/mexico86.c
@@ -453,7 +453,7 @@ static MACHINE_RESET( mexico86 )
/*TODO: check the PCB and see how the halt / reset lines are connected. */
if (machine.device("sub") != NULL)
- cputag_set_input_line(machine, "sub", INPUT_LINE_RESET, (state->ioport("DSW1")->read() & 0x80) ? ASSERT_LINE : CLEAR_LINE);
+ machine.device("sub")->execute().set_input_line(INPUT_LINE_RESET, (state->ioport("DSW1")->read() & 0x80) ? ASSERT_LINE : CLEAR_LINE);
state->m_port_a_in = 0;
state->m_port_a_out = 0;