summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/othunder.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/othunder.c')
-rw-r--r--src/mame/drivers/othunder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/othunder.c b/src/mame/drivers/othunder.c
index 69805436955..8a635974a22 100644
--- a/src/mame/drivers/othunder.c
+++ b/src/mame/drivers/othunder.c
@@ -372,7 +372,7 @@ READ16_MEMBER(othunder_state::othunder_tc0220ioc_r)
READ16_MEMBER(othunder_state::othunder_lightgun_r)
{
static const char *const portname[4] = { P1X_PORT_TAG, P1Y_PORT_TAG, P2X_PORT_TAG, P2Y_PORT_TAG };
- return input_port_read(machine(), portname[offset]);
+ return ioport(portname[offset])->read();
}
WRITE16_MEMBER(othunder_state::othunder_lightgun_w)