summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/neoprot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/neoprot.c')
-rw-r--r--src/mame/machine/neoprot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/machine/neoprot.c b/src/mame/machine/neoprot.c
index 963a77bd310..422f52edc8c 100644
--- a/src/mame/machine/neoprot.c
+++ b/src/mame/machine/neoprot.c
@@ -119,7 +119,7 @@ void fatfury2_install_protection( running_machine &machine )
static WRITE16_HANDLER ( kof98_prot_w )
{
/* info from razoola */
- UINT16* mem16 = (UINT16*)space->machine().region("maincpu")->base();
+ UINT16* mem16 = (UINT16*)space->machine().root_device().memregion("maincpu")->base();
switch (data)
{
@@ -160,7 +160,7 @@ void install_kof98_protection( running_machine &machine )
void mslugx_install_protection( running_machine &machine )
{
int i;
- UINT16 *mem16 = (UINT16 *)machine.region("maincpu")->base();
+ UINT16 *mem16 = (UINT16 *)machine.root_device().memregion("maincpu")->base();
for (i = 0;i < (0x100000/2) - 4;i++)
{