diff options
Diffstat (limited to 'src/mame/machine/cps2crpt.c')
-rw-r--r-- | src/mame/machine/cps2crpt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/machine/cps2crpt.c b/src/mame/machine/cps2crpt.c index aab2fd7ff4f..937b17f101d 100644 --- a/src/mame/machine/cps2crpt.c +++ b/src/mame/machine/cps2crpt.c @@ -632,7 +632,7 @@ static void optimise_sboxes(struct optimised_sbox* out, const struct sbox* in) static void cps2_decrypt(running_machine &machine, const UINT32 *master_key, UINT32 upper_limit) { - address_space &space = *machine.device("maincpu")->memory().space(AS_PROGRAM); + address_space &space = machine.device("maincpu")->memory().space(AS_PROGRAM); UINT16 *rom = (UINT16 *)machine.root_device().memregion("maincpu")->base(); int length = machine.root_device().memregion("maincpu")->bytes(); UINT16 *dec = auto_alloc_array(machine, UINT16, length/2); |