summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/commando.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/commando.c')
-rw-r--r--src/mame/drivers/commando.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/commando.c b/src/mame/drivers/commando.c
index 53dd2b50f7e..cd41223bbd4 100644
--- a/src/mame/drivers/commando.c
+++ b/src/mame/drivers/commando.c
@@ -511,7 +511,7 @@ ROM_END
DRIVER_INIT_MEMBER(commando_state,commando)
{
- address_space &space = *machine().device("maincpu")->memory().space(AS_PROGRAM);
+ address_space &space = machine().device("maincpu")->memory().space(AS_PROGRAM);
UINT8 *rom = machine().root_device().memregion("maincpu")->base();
UINT8 *decrypt = auto_alloc_array(machine(), UINT8, 0xc000);
int A;
@@ -531,7 +531,7 @@ DRIVER_INIT_MEMBER(commando_state,commando)
DRIVER_INIT_MEMBER(commando_state,spaceinv)
{
- address_space &space = *machine().device("maincpu")->memory().space(AS_PROGRAM);
+ address_space &space = machine().device("maincpu")->memory().space(AS_PROGRAM);
UINT8 *rom = machine().root_device().memregion("maincpu")->base();
UINT8 *decrypt = auto_alloc_array(machine(), UINT8, 0xc000);
int A;