summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/guab.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/guab.c')
-rw-r--r--src/mame/drivers/guab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/guab.c b/src/mame/drivers/guab.c
index 23bc82f858f..c33c95a1931 100644
--- a/src/mame/drivers/guab.c
+++ b/src/mame/drivers/guab.c
@@ -608,7 +608,7 @@ INPUT_CHANGED_MEMBER(guab_state::coin_inserted)
if (newval == 0)
{
UINT32 credit;
- address_space &space = *machine().device("maincpu")->memory().space(AS_PROGRAM);
+ address_space &space = machine().device("maincpu")->memory().space(AS_PROGRAM);
/* Get the current credit value and add the new coin value */
credit = space.read_dword(0x8002c) + (UINT32)(FPTR)param;