summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/r2crypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/r2crypt.c')
-rw-r--r--src/mame/machine/r2crypt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/machine/r2crypt.c b/src/mame/machine/r2crypt.c
index 0aecfb0bed0..013df9dc696 100644
--- a/src/mame/machine/r2crypt.c
+++ b/src/mame/machine/r2crypt.c
@@ -220,7 +220,7 @@ static UINT32 core_decrypt(UINT32 ciphertext, int i1, int i2, int i3, int i4,
void raiden2_decrypt_sprites(running_machine &machine)
{
- UINT32 *data = (UINT32 *)machine.region("gfx3")->base();
+ UINT32 *data = (UINT32 *)machine.root_device().memregion("gfx3")->base();
for(int i=0; i<0x800000/4; i++)
{
data[i] = core_decrypt(data[i],
@@ -240,7 +240,7 @@ void raiden2_decrypt_sprites(running_machine &machine)
void zeroteam_decrypt_sprites(running_machine &machine)
{
- UINT32 *data = (UINT32 *)machine.region("gfx3")->base();
+ UINT32 *data = (UINT32 *)machine.root_device().memregion("gfx3")->base();
for(int i=0; i<0x400000/4; i++)
{
data[i] = core_decrypt(data[i],