summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/glass.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/glass.c')
-rw-r--r--src/mame/drivers/glass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/glass.c b/src/mame/drivers/glass.c
index 216b56f56f6..9b7e9dd5f3c 100644
--- a/src/mame/drivers/glass.c
+++ b/src/mame/drivers/glass.c
@@ -320,7 +320,7 @@ static void glass_ROM16_split_gfx( running_machine &machine, const char *src_reg
READ16_MEMBER( glass_state::glass_mainram_r )
{
UINT16 ret = m_mainram[offset];
- int pc = cpu_get_pc(&space.device());
+ int pc = space.device().safe_pc();
if (offset == (0xfede96 - 0xfec000)>>1)
{
@@ -353,7 +353,7 @@ READ16_MEMBER( glass_state::glass_mainram_r )
WRITE16_MEMBER( glass_state::glass_mainram_w )
{
- int pc = cpu_get_pc(&space.device());
+ int pc = space.device().safe_pc();
COMBINE_DATA(&m_mainram[offset]);