summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/statriv2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/statriv2.c')
-rw-r--r--src/mame/drivers/statriv2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/statriv2.c b/src/mame/drivers/statriv2.c
index c7959bd36ca..635124a1767 100644
--- a/src/mame/drivers/statriv2.c
+++ b/src/mame/drivers/statriv2.c
@@ -204,7 +204,7 @@ static SCREEN_UPDATE_IND16( statriv2 )
static INTERRUPT_GEN( statriv2_interrupt )
{
statriv2_state *state = device->machine().driver_data<statriv2_state>();
- UINT8 new_coin = input_port_read(device->machine(), "COIN");
+ UINT8 new_coin = state->ioport("COIN")->read();
/* check the coin inputs once per frame */
state->m_latched_coin |= new_coin & (new_coin ^ state->m_last_coin);