summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/mpu4.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/mpu4.cpp')
-rw-r--r--src/mame/machine/mpu4.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/machine/mpu4.cpp b/src/mame/machine/mpu4.cpp
index 86481bfeba2..4591f5a3722 100644
--- a/src/mame/machine/mpu4.cpp
+++ b/src/mame/machine/mpu4.cpp
@@ -1976,7 +1976,7 @@ READ8_MEMBER(mpu4_state::characteriser_r)
logerror("%s No Characteriser Table\n", machine().describe_context());
/* a cheat ... many early games use a standard check */
- int addr = space.device().state().state_int(M6809_X);
+ int addr = m_maincpu->state_int(M6809_X);
if ((addr>=0x800) && (addr<=0xfff)) return 0x00; // prevent recursion, only care about ram/rom areas for this cheat.
uint8_t ret = space.read_byte(addr);